So I've been playing with settings this morning.
Ubuntu feisty seems to have defaulted to the dhcp3 client.
I've been going through the man and I can use 'supersede' or 'append' to
modify the search domain.
ie. supersede creates - search my.comdefault.com
append created - search default.commy.com
I can't seem to make it create:
search default.com
search my.com
The man says to use 'append [ option declaration ]' but doesn't seem to
state exactly what those options are?
any Ideas?
Thanks,
Charlie
Charlie de Courcy wrote:
> Thanks all, very much appreciated.
>
> Charlie
>
>
> Hugo Mills wrote:
>> On Wed, Oct 03, 2007 at 05:05:29PM +0100, Charlie de Courcy wrote:
>>
>>> A pet peev of mine I was hoping you might be able to help me with!
>>> I connect to our company network over standard ethernet Lan, using
>>> DHCP - however I need to add in an extra 'Search domain' to resolve
>>> some internal website addresses.
>>> This works fine for a single session by adding 'search blah.com'
>>> into the top line of /etc/resolv.conf or via the networkmanager gui;
>>> however as soon as I restart, it overwrites the information and I
>>> lose my search domain.
>>>
>>
>> This will be DHCP doing this -- when you connect to the network,
>> the DHCP server supplies a search path and a set of nameservers to
>> use. The DHCP daemon on your machine (dhclient, or dhcpcd are the two
>> most common ones) then writes a new /etc/resolv.conf file to match,
>> removing anything else.
>>
>>
>>> I'm running Ubuntu Feisty, though I'm sure fedora did the same - any
>>> ideas how I can get this configuration to stick?
>>>
>>
>> If you're using dhcpcd as your DHCP client, then there's entries in
>> the config file (/etc/dhcpc/config on my machine) which tell it which
>> components of your network config you will allow it to set up.
>>
>> Debian also has a package called "resolvconf" which should fix
>> this, although I've always found it a bit hard to get right.
>>
>> Hugo.
>>
>>