This is going to be a short post explaining how to manually set a DNS server in Ubuntu 18.04.
#Edit the following configuration file: sudo vi /etc/systemd/resolved.conf #Add the DNS server you want to use: [Resolve] DNS=192.168.48.44 #Write changes and close file (:wq!) #Restart local DNS service sudo systemctl restart systemd-resolved.service #Query your local DNS server dig server-vm.example.com
... ;; QUESTION SECTION: ;server-vm.example.com. IN A ;; ANSWER SECTION: server-vm.example.com. 6856 IN A 192.168.48.44 ...