Bind dns forwarder config

From LinuxNewbie

If you don't have bind, you can install in Debian with

apt-get install bind9

This path for Debian is /etc/bind/named.conf (and most other distros). Move it and then put a new file in its place.

mv /etc/bind/named.conf /etc/bind/named.conf.orig
nano /etc/bind/named.conf
options {
        directory "/etc/named";
        forwarders { 151.164.67.1; 151.164.1.1; };
        forward only;

        allow-transfer { none; };
};

Change forwarders to your ISP's DNS.
Once you have this part, restart bind. In Debian I would

/etc/init.d/bind9 restart

- OR some other distros may be -

/etc/init.d/bind restart

- OR -

/etc/init.d/named restart

To test you can use dig

dig @localhost google.com