If you are unable to resolve local dns names from an Ubuntu machine hosting a bind DNS server – it is likely that dnsmasq is running on port 53. As far as i can tell, it gets in the way and causes more issues than the purported benefits. On Ubuntu 16.04+ (I tested this on Ubuntu 19.04) you can disable dnsmasq as follows:
add or change to1dns=none
. Save the file.
1systemctl restart NetworkManager.service
(note uppercase and lowercase).
with your values. Save the file.
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
Optional testing: reboot and confirm.