This article shows my process of installing and configuring BIND9 DNS server on a Linux server. I didn ' t touch every aspects of bind9, but following the process, a DNS server was configured with A/AAAA, NAPTR and SRV re Source record types. The DNS server is able to being used for testing.
# # Download bind-9.10.0-p1.tar.gzhttps://www.isc.org/downloads/bind/## Untar the package tar XZVF bind-9.10.0-p1.tar.gz## Config and install CD bind-9.10.0-p1./configure./make./make Install # test named is Installedna MED-VNAMED-G # Generate rndc.keycd/etcrndc-confgen-a## generate/etc/named.conf with contents Cat/etc/named.confzone "lingcloud.com" {type master;file "/etc/bind/zones/lingcloud.com.db";}; # config zone with example contentscat/etc/bind/zones/lingcloud.com.db; BIND data file for lingcloud.com; $TTL 14400; Lingcloud.com;start of authority resource record type. Every domain must has a Start of authority record at the Cutoverts parent, domain.@ in SOA ns1.lingcloud.com. Host.lingcloud.com. (201006601; Serial7200; Refresh120; Retry2419200; Expire604800); Default TTL;; NS record indicate which name server is authoritative for the zone/domain. It's primarily used if you wlingcloud.com. In NS ns1.lingcloud.com.; A recordlingcloud.com. In A 10.41.104.171; NS seems to being name server ' s ipns1 in a 10.41.104.232nodeB in a 10.41.104.171nodeb.realmb in a 10.41.104.171nodeC in a 10.41.104.171 NODEC.REALMC in A 10.41.104.171; NAPTR RECORDREALMB in NAPTR [s] "aaa:diameter.tcp" "" _DIAMETER._TCP.SRVB.REALMB.LINGCLOUD.COM.REALMC in NAPTR 51 1 "S" "Aaa:diameter.tcp" "" _diameter._tcp.srvc.realmc.lingcloud.com.; SRV RECORD_DIAMETER._TCP.SRVB.REALMB in SRV 0 1 3868 nodeb.realmb.lingcloud.com._diameter._tcp.srvc.realmc in SRV 0 1 3868 nodec.realmc.lingcloud.com.## start named/usr/local/sbin/named## check named status Rndc status## nslookup can be used to Query DNS Server nslookup> server 127.0.0.1Default server:127.0.0.1address:127.0.0.1#53> lingcloud.comserver :127.0.0.1address:127.0.0.1#53name:lingcloud.comaddress:10.41.104.172> NodeB.lingcloud.comServer :127.0.0.1address:127.0.0.1#53name:nodeb.lingcloud.comaddress:10.41.104.171> Set type=NAPTR> realm1.lingcloud.com server:127.0.0.1address:127.0.0.1#53realm1.lingcloud.comnaptr = 50"S" "Aaa:diameter.tcp" "" "_diameter._tcp.srv1.lingcloud.com.> set type=srv> _diameter._tcp.srv1server : 127.0.0.1address:127.0.0.1#53_diameter._tcp.srv1.lingcloud.comservice = 0 1 3868 nodeB.lingcloud.com.
Reference:
http://www.servermom.org/how-to-install-and-setup-bind9-on-ubuntu-server/136/
https://kb.isc.org/article/AA-00768/0/ Getting-started-with-bind-how-to-build-and-run-named-with-a-basic-recursive-configuration.html
Http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-rndc.html