[root@dlp ~]# systemctl start named
[root@dlp ~]# systemctl enable named
Change DNS settings that the server refer to local DNS service
[root@dlp ~]#
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DNS1=
[root@dlp ~]# systemctl restart network
10.0.0.30
Make sure the server can resolve domain names or IP addresses
[root@dlp ~]# dig dlp.server.world.
; <<>> DiG 9.9.4-RedHat-9.9.4-14.el7 <<>> dlp.server.world. ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41735 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;dlp.server.world. IN A ;; ANSWER SECTION: dlp.server.world. 86400 IN A 10.0.0.30 ;; AUTHORITY SECTION: server.world. 86400 IN NS dlp.server.world. ;; Query time: 1 msec ;; SERVER: 10.0.0.30#53(10.0.0.30) ;; WHEN: Thu Jul 10 14:43:35 JST 2014 ;; MSG SIZE rcvd: 75[root@dlp ~]# dig -x 10.0.0.30
; <<>> DiG 9.9.4-RedHat-9.9.4-14.el7 <<>> -x 10.0.0.30 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14268 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;30.0.0.10.in-addr.arpa. IN PTR ;; ANSWER SECTION: 30.0.0.10.in-addr.arpa. 86400 IN PTR dlp.server.world. ;; AUTHORITY SECTION: 0.0.10.in-addr.arpa. 86400 IN NS dlp.server.world. ;; ADDITIONAL SECTION: dlp.server.world. 86400 IN A 10.0.0.30 ;; Query time: 1 msec ;; SERVER: 10.0.0.30#53(10.0.0.30) ;; WHEN: Thu Jul 10 14:44:39 JST 2014 ;; MSG SIZE rcvd: 111
0 comments:
Post a Comment