Prepend in /etc/dhcp/dhclient.conf fails
Running Ubuntu 16.04 LTS on an APU1d4 (http://
Ubuntu runs fine and is a dhcp client of my router - and have installed bind9 and it works as well.
Issue comes trying to prepend my local bind server as a nameserver in dhclient.conf.
Append works correctly - in resolv.conf get 127.0.0.1 after the two OpenDNS name server returned by my router
But if i put prepend in dhclient in any row then resolv.conf only contains the prepended nameserver
So
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
results in the single line of nameserver 127.0.2.1 in resolv.conf
If I change the prepend above to an append, then I get in resolv.conf
nameserver#1 from dhcp
nameserver#2 from dhcp
nameserver 127.0.0.1
I seem to get the same results whether I reboot, do ifup / ifdown or dhclient -r / dhclient
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: