Hi,
I would like to look at restricting our external DNS servers to only respond for the domains that we own. Firstly, I would like to ask if this is the convention, or does everybody set their DNS to answer all queries for everyone?
Assuming not, we will still want our externals to do recursive lookups for our internal traffic so we will need an ACL to identify internal networks and allow recursion.
Would I also need a 'zone "." recursion no' stanza, so that all other traffic will be denied or would the ACL be enough?
Looking at my named.conf, it looks like it has been set up like this in the past, but this has been commented out.
named.conf: (truncated)
acl dns_servers { internal_dns_ip; internal_dns_ip; };
options {
directory "/var/named" ;
allow-query { any; };
# allow-query { dns_servers; 127.0.0.1; };
# allow-recursion { dns_servers; 127.0.0.1; };
allow-recursion { any; };
allow-transfer { none; };
allow-notify {master_dns_ip; };
listen-on-v6 { none; };
recursive-clients 3500;
version none;
zone-statistics yes;
notify no;
auth-nxdomain no;
};
view external {
match-clients { any; };
zone "orgname.com" {
type slave;
file "/var/named/slave/external/orgname.com";
masters { master_dns_ip; };
allow-notify { master_dns_ip; };
allow-query { any; };
};
... more zones ...
};