sudo apt-get install bind9
vi /etc/bind/named.conf.options => #For caching server type forwarders { 8.8.8.8; 8.8.4.4; };
service bind9 restart
vi /etc/resolv.conf =>
nameserver 127.0.0.1
dig leventozturk.com => 101ms
dig leventozturk.com => 1ms (cached)
vi /etc/bind/named.conf.options =>
vi /etc/bind/named.conf.local =>
mkdir /etc/bind/zones
cp /etc/bind/db.local /etc/bind/zones/db.sefika.com
vi /etc/bind/zones/db.sefika.com =>
cp /etc/bind/db.127 /etc/bind/zones/db.192
or
cp /etc/bind/db.255 /etc/bind/zones/db.216
vi /etc/bind/zones/db.216 =>
named-checkzone sefika.com /etc/bind/zones/db.sefika.com
tail -f /var/log/syslog
host –l sefika.com #Check forward zone
nslookup sefika.com dig sefika.com
nslookup 216.58.45.34 #Check reverse zone
CNAME:restart the query using the canonical name instead of the original name