/etc/dhclient.conf syntax?

Gerard Samuel fbsd-questions at trini0.org
Mon Nov 8 06:33:39 PST 2004


Bob Tito wrote:

> Gerard Samuel wrote:
>
>> I cant seem to get a custom version of /etc/resolv.conf to stick.
>> dhclient keeps overwriting it with data from my ISP's dhcp server.
>> This is what I have in /etc/dhclient.conf ->
>> interface "ed0" {
>>    supercede domain-name "trini0.org";
>>    prepend domain-name-servers 127.0.0.1;
>> }
>
>
> This is mine,
>
> interface "xl0" {
>         prepend domain-name-servers 127.0.0.1;
>         supersede domain-name "btito.local";
>         media "media 10baseT/UTP";
> }
>
> resulting in:
>
> mail# cat /etc/resolv.conf
> search btito.local
> nameserver 127.0.0.1
> nameserver 194.xxx.xxx.xxx
> nameserver 194.xxx.xxx.xxx
>
>
> Fix the typo in supersede if this is a try copy and paste form the file.
>
> Best regards, Bob

Thanks.  Fixing the spelling error, makes it work as expected.
Maybe lack of sleep.
Thanks once again...

>>
>> And for some reason, /etc/resolv.conf *always* comes back as ->
>> search some_name.attbi.com
>> nameserver www.xxx.yyy.zzz
>> nameserver www.xxx.yyy.zzz
>>
>> Is there anyway to make /etc/resolv.conf stick??
>> Thanks 
>


More information about the freebsd-questions mailing list