I have recently set up a Windows AD domain controller with DNS and DHCP servers. Windows clients get their DNS server set to match what DHCP hands out but my Ubuntu 16.04 workstation only sets the loopback address and a search domain:
I had expected to see the setting nameserver 192.168.14.4 in /etc/resolveconf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search pdf-xchange.net
If I add dns-nameservers 192.168.14.4 to /etc/network/interfaces , i see it in /etc/resolv.conf but i want some Ubuntu Desktops to use DHCP and not have to manually modify them.
Why does a DHCP client not add the DNS nameserver the way a static entry in /etc/network/interfaces does ? I want this set as it is specified as a prerequisite for adding the machine to the AD domain:
The domain controller is the primary DNS resolver as specified in /etc/resolv.conf.