I am running Debian 7 and have set up a DHCP and DNS server.
Everything is working nicely, except for the server itself not following the DNS entries in BIND.
The problem is that
/etc/resolv.conf is populated by an upstream gateway as its primary DNS. After manually changing the entry to point to itself instead of the upstream gateway, the DNS server uses the BIND settings before requesting DNS from the gateway.
Unfortunately, upon reboot or re-connect of the interface,
/etc/resolv.conf reverts back to using the gateway, putting me back into the problematic situation.
I'd like to keep dynamic IP on that interface, while using a static nameserver. Is this possible?