On Wed, 23 Nov 2016 at 17:08 ED Fochler <soek...@liquidbinary.com> wrote:
> dhclient fails to update resolv.conf if DHCP is served by dnsmasq on linux. > > This bug is odd and very specific. affects at least OpenBSD 5.9 - 6.0 > amd64. > Running OpenBSD on core2duo laptop and vm gives me the same behavior. > If dhclient.conf specifies domain-name, domain-name-servers then all is > well. > Default behaviour with no dhclient.conf, such as bsd.rd for fresh install, > then > gateway and nameserver must be manually filled in despite being given by > DHCP. Other OSes (mac, linux, windows) on same DHCP service are fine. > > /var/db/dhclient.leases shows fully populated information as expected, but > does not populate /etc/resolv.conf by default. As the lease clearly has > the > information, and default behavior should be to fill in DNS information, I > am > blaming dhclient. I have found no other DHCP server which causes this, > and running dnsmasq on OpenBSD does not induce this problem. > > dhclient running in foreground throws no errors during this situation. > > I hope this is helpful, > > ED. > Not really helpful at all I'm afraid. Since the problem only occurs with dnsmasq on linux, I'm blaming that. :-) In any case, a tcpdump of a DHCP exchange that shows the problem would be the most helpful bit of information. Running dhclient with the -L option to capture the actual offer information dhclient thinks it sees would also be helpful. .... Ken