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
Brilliant - thanks. I'd wrongly assumed you need a separate line for
each entry.
Live and learn!

Hugo Mills wrote:
> On Thu, Oct 04, 2007 at 10:50:07AM +0100, Charlie de Courcy wrote:
>
>> 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
>>
>
>    Why do you need two separate "search" statements? You probably need
> only one, with the search domains space separated on the same.

>
>
>> The man says to use 'append [ option declaration ]' but doesn't seem to
>> state exactly what those options are?
>>
>
>    The options are any DHCP options (probably as defined in the dhcpd3
> server config file in this case). If you look at the sample config
> file at the end of the man page, it uses: 

>
> interface "ep0" {
> [...]
>     supersede domain-name "fugue.com rc.vix.com home.vix.com";
> [...]
> }

>
>    I'd suggest that this is what you probably need (where "ep0" is the
> name of your network interface).

>
>    Hugo.

>
>