Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@user sysconfig]# chkconfig named on
- [root@user sysconfig]# nano /etc/resolv.conf
- [root@user sysconfig]# dig ns1.domain.com
- ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> ns1.domain.com
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 764
- ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
- ;; QUESTION SECTION:
- ;ns1.domain.com. IN A
- ;; ANSWER SECTION:
- ns1.domain.com. 86400 IN A 103.31.xxx.126
- ;; AUTHORITY SECTION:
- domain.com. 86400 IN NS ns2.domain.com.
- domain.com. 86400 IN NS ns1.domain.com.
- ;; ADDITIONAL SECTION:
- ns2.domain.com. 86400 IN A 103.31.xxx.126
- ;; Query time: 0 msec
- ;; SERVER: 103.31.xxx.126#53(103.31.xxx.126)
- ;; WHEN: Sat May 4 11:33:24 2013
- ;; MSG SIZE rcvd: 101
- [root@user sysconfig]# dig -x 103.31.xxx.126
- ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> -x 103.31.xxx.126
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2963
- ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
- ;; QUESTION SECTION:
- ;126.xxx.31.103.in-addr.arpa. IN PTR
- ;; ANSWER SECTION:
- 126.xxx.31.103.in-addr.arpa. 86400 IN PTR www.domain.com.
- 126.xxx.31.103.in-addr.arpa. 86400 IN PTR domain.com.
- ;; AUTHORITY SECTION:
- xxx.31.103.in-addr.arpa. 86400 IN NS ns1.domain.com.
- xxx.31.103.in-addr.arpa. 86400 IN NS ns2.domain.com.
- ;; ADDITIONAL SECTION:
- ns1.domain.com. 86400 IN A 103.31.xxx.126
- ns2.domain.com. 86400 IN A 103.31.xxx.126
- ;; Query time: 0 msec
- ;; SERVER: 103.31.250.126#53(103.31.xxx.126)
- ;; WHEN: Sat May 4 11:33:57 2013
- ;; MSG SIZE rcvd: 160
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement