===== Minimal Config =====
named.conf
options {
directory "/var/cache/bind";
dnssec-validation auto;
listen-on-v6 { any; };
# allow-query { any; };
# allow-recursion { any; };
# forwarders { 1.1.1.1; };
};
zone "example.local" {
type master;
file "/etc/bind/db.example_local";
};
db.example_local
$TTL 50
@ IN SOA ns1.example.local. ns2.example.local. (1 60 60 60 60)
IN NS ns1
IN NS ns2
ns1 IN A 127.0.0.1
ns2 IN A 127.0.0.1
The DNS spec needs 2 servers.
===== Dig command =====
# dig @
dig @8.8.8.8 cnn.com
# dig +short @
dig +short @8.8.8.8 A cnn.com
dig +short @8.8.8.8 AAAA cnn.com