Setup Ubuntu DNS Cache Server

Setup Ubuntu DNS Cache Server

This post is how to setup a DNS Cache Server. This configuration uses Google DNS as the forwarder and allows access from clients that have the IP in the scope of 192.168.0.0/16.

  1. Install the BindDNS package
    • sudo apt install bind9
  2. Edit the /etc/bind/named.conf.options file editing the Forwarders as follows.
    • forwarders {8.8.8.8;};
  3. Edit the /etc/bind/named.conf.options file adding access for remote DNS lookups.
    • recursion yes;
    • allow-recursion { 192.168.0.0/16;};
  4. Restart the BindDNS Service
    • sudo systemctl restart bind9.service

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.