Skip to content

Bind

Example 1: forwarder

/etc/bind/named.conf.local

zone "domain.local" {
    type master;
    file "/etc/bind/zones/db.domain.local"; 
};

/etc/bind/named.conf.options

acl "trusted" {
  127.0.0.1;
  10.0.0.0/8;
  172.16.0.0/12;
  192.168.0.0/16;
};

options {
  directory "/var/cache/bind";

  forwarders {
                8.8.8.8;
                8.8.4.4;
  };

  recursion yes;                
  allow-recursion { trusted; }; 

  allow-transfer { none; };

  allow-query { trusted; };
  allow-query-cache { trusted; };

  dnssec-validation auto;

  listen-on { 10.10.0.2; };
  listen-on-v6 { none; };
};