Hi David,
Not sure if this is still valid for 8.10, but on my 8.04 machines, I
added this to /etc/dhcp3/dhclient.conf:
supersede domain-name "example.com";
david wrote:
Hi Jeff...
From my original post:
> System/Preferences/Network Configuration GUI tool fails with the
following
> message:
>
> Updating connection failed: nm-ifupdown-connection.c.82 - connection
update
> not supported (read only)
>
So now that the lovely clever gui tool doesn't work, what do I do
next? go back to the old fashioned config files that I was comfortable
with? I can't because they are now mysteriously over-written or
silently ignored!
We are being dumbed down. I'm quite happy to have simple tools for my
Mum, but surely in a perfect world the simple tools would advise us
what's going on under the hood. At the moment it seems to be as secret
as Windows.
At the moment, my work around is to edit resolv.conf every time I
reboot. Luckily that isn't often, but I'm sure it wouldn't be the
ideal solution for my Mum.
If the configs are no longer stored in /etc/network/interfaces or
resolv.conf, then perhaps it would be nice if the powers that be had
generated a comment such as:
# NetworkManager generates this file from data stored in
/path/to/new/config
instead of the cryptic and utterly useless
# Generated by NetworkManager
While I'm spitting dummies..... take a look at man networkmanager or
man nm-tool.....
just as cryptic and as far as I can see equally useless.
so next I try lynx /usr/share/doc/network-manager/README.debian which
tells me about a config file.. ahh, thought I, this may be just what i
want! :
[EMAIL PROTECTED]:~$ less /etc/NetworkManager/nm-systems-settings.conf
/etc/NetworkManager/nm-systems-settings.conf: No such file or directory
I would have thought that if I'm serious (or silly?) enough to want to
edit /etc/resolv.conf then it's not unreasonable for the writers of
the software to give me some clues. Your average mum is not likely to
be editing config files.
Meantime, I still can't permanently set my search domain.
Jeff Waugh wrote:
<quote who="david">
Just upgraded to Ubuntu 8.10 (from 8.04) and now I'm losing my search
domain on reboot. I'm using a static address.
If I edit resolv.conf everything is good until I reboot, then
resolv.conf
is re-created without the search domain.
Where should the search domain be stored? I thought it was in
/etc/network/interfaces but apparently not according to man interfaces.
Previously there was a line: dns-search kenpro.com.au
I was expecting something like .gconf/system/networking but that
doesn't
exist and I can't find anything similar.
Never edit the GConf database directly [1], use the tools. In this
case, you
want the Network Manager connections editor which you can find by
context
clicking on the Network Manager panel icon (then "Edit
Connections...") or
"System > Preferences > Network Configuration".
Choose the wired or wireless connection you want to set a search
domain for,
and click "Edit". To set the search domain you want the "IPv4
Settings" tab,
static addresses, etc.
Sure, some people don't like Network Manager because it pulls you out
of the
comfy configuration files you might be used to, but it does a whole
lot of
stuff for you if you don't want to bother with them anymore (or never
found
them easy or comfy in the first place -- ie. my Mum).
Also, if you set stuff up in /etc/network/interfaces, Network Manager
will
ignore it... at which point the resolvconf package will be a handy
way to
manage your resolv.conf settings via /etc/network/interfaces.
:-)
- Jeff
[1] Not because it's impossible to do so, but because it's almost
never the
easiest way to achieve your goals.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html