Background Back when I got my GL-AR150 mini router, I was blown away by the powerful capabilities of this $25 OpenWRT router,...
Change DNS servers for a Debian serverStanislav Khromov
Edit the file
Uncomment the line starting with #prepend domain-name-servers and set your dns servers. Below is an example using the Google Public DNS.
prepend domain-name-servers 18.104.22.168, 22.214.171.124;
(Note removal of hash sign at beginning and two comma-separated DNS servers.)
Reboot and you should be set. You can verify the servers in use by running
The IP for the DNS server will be at the bottom of the output, like this:
;; SERVER: 126.96.36.199#53(188.8.131.52)