On Sat, Aug 12, 2017 at 07:12:52AM BST, jungle boogie wrote:
> Hi All,
> 
> From this page:
> https://www.openbsd.org/faq/faq6.html#Setup
> 
> Once the interface is configured, the /etc/resolv.conf file will be
> overwritten.
> You can customize the resolver configuration by using settings in
> dhclient.conf(5)
> and using resolv.conf.tail(5). To prevent the DHCP server from overriding
> the
> DNS server you configured in /etc/resolv.conf.tail, add ignore
> domain-name-servers;
> to your /etc/dhclient.conf.
> 
> $ cat /etc/dhclient.conf
> 
> send host-name "puffer.in.example.net";
> ignore domain-name-servers;
> 
> $ cat /etc/resolv.conf.tail
> 
> search in.example.net
> nameserver 192.168.0.17
> lookup file bind
> 
> $ cat /etc/resolv.conf
> 
> $
> 
> $ cat /etc/hosts
> 
> 127.0.0.1       localhost puffer.in.example.net
> ::1             localhost
> 
> What am I doing wrong? I just want a search domain and a couple NS is
> resolv.conf
> 
> Thanks!
> 

Hi,

I don't think there's anything you're doing wrong - I've tested it
myself just now and the option doesn't seem to be doing what it is
supposed to, at least as described in the FAQ.

In order to achieve the same, I simply use 'supersede', i.e.:

        send host-name "host";
        supersede domain-name-servers 127.0.0.1;

Regards,

Raf

Reply via email to