I'm having some issues with my bind9 dns cache returning an answer to any query. Why? Can I disable that behavior somehow?
nslookup not.a.valid.query
Server: UnKnown
Address: 192.168.0.1
Non-authoritative answer:
Name: not.a.valid.query.robertfoss.se
Address: *my public ip address*
If I disable the line option domain-name "robertfoss.se"; in my dhcpd.conf (and restart the service) the same query results in the much more sane dns-answer:
nslookup not.a.valid.query
Server: UnKnown
Address: 192.168.0.1
bind9 named.conf.options
options {
directory "/var/cache/bind";
forwarders {
81.88.9.218;
8.8.8.8;
81.88.9.220;
8.8.4.4;
};
// Security options
allow-query {127.0.0.1; 192.168.0.0/24; };
allow-recursion { 127.0.0.1; 192.168.0.0/24; };
allow-transfer { none; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
I'm running bind9 on a ubuntu host.