I have setup a DNS server for my department which is running FreeBSD 10.2. It is currently connected to the campus internet and receives its address via dhcp, so /etc/resolv.conf looks like this:
The machine is serving DNS from another interface so I need the first nameserver to be 127.0.0.1. Therefore, I put the following in /etc/dhclient.conf:
However, now /etc/resolv.conf gets entirely rewritten and the only thing left is:
Why did everything else go away and how do I prepend the local DNS server without losing everything else?
#Generated by resolvconf search ttu.edu nameserver x.x.x.x nameserver x.x.x.x
prepend domain-name-servers 127.0.0.1;
#Generated by resolvconf nameserver 127.0.0.1