[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

faq 6.4.1 correction?



having recently been forced by the recent @home mess to consult the openbsd faq regarding using the dhcp client, i came across an inconsistency between the faq and what actually worked for me.

in section 6.4.1, the faq states:
No matter how you start the dhclient, you can edit
the /etc/dhclient.conf file to not update your DNS according to the dhcp server's idea of DNS by first uncommenting the 'require' lines in it (they are examples of the default settings, but you need to uncomment them to override dhclient's defaults.)


request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, lpr-servers, ntp-servers;

and then remove domain-name-servers. Of course, you may want to remove hostname, or other settings too.

in the first place, it wasn't clear to me if the above example should read "require" and not "request" since that's what the preceding paragraph states.


but in any case, having either or both of the request/require lines with "domain-name-servers" removed still doesn't stop /etc/resolv.conf from getting overwritten. i had to add a "supersede x.x.x.x;" line to keep my local dns entry from getting overwritten. so the suggestion in the documentation just seems irrelevant--or i guess it's possible attbi's dhcp servers just don't care what the client asks for?

just thought i'd mention it in case others also find it to be a source of confusion. fyi, i'm running 2.9.



Visit your host, monkey.org