Re: [Hampshire] Search domains in resolv.conf

Top Page

Reply to this message
Author: Charlie de Courcy
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Search domains in resolv.conf
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.

>
>