Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Click here to view code image
matthew@seymour:~$ sudo service bind9 restart


You can also use start, stop, and so on, as with other services.


You should now be all set. To test your DNS server, edit
/etc/resolv.conf (after making a backup of the original!) and replace
the contents with the following, replacing example.com with your domain
name and 192.168.1.1 with the address of your new DNS server:


Click here to view code image
search example.com
nameserver 192.168.1.1


Then test that your DNS server is functioning by using ping to see what it
returns for example.com:


Click here to view code image
matthew@seymour:~$ ping example.com


In addition to the ping utility just mentioned, dig is another excellent tool
for reviewing DNS records. You may also find nslookup and whois
useful. Also, named-checkzone is included with BIND and may be useful
to you.


References


http://www.bind9.net—A  website with    tons    of  useful  information about   both
DNS and BIND
DNS and BIND by Cricket Liu and Paul Albitz—The canonical guide
to understanding both of these technologies
Free download pdf