Http://lq2419.blog.51cto.com/1365130/1172269
Http://lq2419.blog.51cto.com/1365130/1172273
Http://lq2419.blog.51cto.com/1365130/1172319
Edit # Vim/etc/named. conf configuration file, add the following content: Options {directory "/var/named" ;}; zone ". "In {type hint; file" named. root ";}; zone" localhost "in {type master; # specify the master Server File" localhost. zone ";}; zone" myinfratest.com "in {type master; file" infra.com. zone ";}; zone" created 192.in-ADDR. ARPA "in {# reverse region name type master; file" 192.168.2.zone "; # saved region data file};/var/named/infra.com. zone content $ TTL 600 myinfratest.com. in SOA ns1.myinfratest.com. admin.myinfratest.com. (2013040101 1 H 5 m 2D 6 h) in NS NS1 in MX 10 mail NS1 in a 192.168.2.4 mail in a 192.168.2.4 WWW in a 192.168.2.4 WWW in a 192.168.2.6 FTP in cname WWW Use this command to request resolution of www.myinfratest.com this host dig-t a www.myinfratest.com @ 192.168.2.4host and NSLookup command can also view/var/named/192.168.2.zone content $ TTL 600 running 192.in-ADDR. ARPA. in SOA ns1.myinfratest.com. admin.myinfratest.com. (2013040101 1 H 5 m 2D 6 h) in NS ns1.myinfratest.com. 4 In PTR ns1.myinfratest.com. 4 In PTR mail.myinfratest.com. 4 In PTR www.myinfratest.com. 6 In PTR www.myinfratest.com. run the dig command to reverse query dig-t ptr 192.168.2.6 @ 192.168.2.4