===== Minimal Config ===== /etc/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 (in /var/named/___ if an absolute path is not used) $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. However, SOA is sometimes a nameserver followed by an email address (with "@" replaced by "."). ===== nslookup command ===== Examples # Non-interactive nslookup cnn.com nslookup -querytype=A cnn.com 8.8.8.8 nslookup -querytype=CNAME www.cnn.com 8.8.8.8 # Interactive nslookup > set type=srv > _mongodb._tcp.dev.pockettheories.com ===== Dig command ===== Examples dig cnn.com dig cname www.cnn.com @8.8.8.8 dig srv _mongodb._tcp.dev.pockettheories.com @mydns.pockettheories.com # 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