Advertisement
fauzieuy

setting dns server 2

May 4th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. [root@user sysconfig]# chkconfig named on
  2. [root@user sysconfig]# nano /etc/resolv.conf
  3. [root@user sysconfig]# dig ns1.domain.com
  4.  
  5. ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> ns1.domain.com
  6. ;; global options: +cmd
  7. ;; Got answer:
  8. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 764
  9. ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
  10.  
  11. ;; QUESTION SECTION:
  12. ;ns1.domain.com. IN A
  13.  
  14. ;; ANSWER SECTION:
  15. ns1.domain.com. 86400 IN A 103.31.xxx.126
  16.  
  17. ;; AUTHORITY SECTION:
  18. domain.com. 86400 IN NS ns2.domain.com.
  19. domain.com. 86400 IN NS ns1.domain.com.
  20.  
  21. ;; ADDITIONAL SECTION:
  22. ns2.domain.com. 86400 IN A 103.31.xxx.126
  23.  
  24. ;; Query time: 0 msec
  25. ;; SERVER: 103.31.xxx.126#53(103.31.xxx.126)
  26. ;; WHEN: Sat May 4 11:33:24 2013
  27. ;; MSG SIZE rcvd: 101
  28.  
  29. [root@user sysconfig]# dig -x 103.31.xxx.126
  30.  
  31. ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> -x 103.31.xxx.126
  32. ;; global options: +cmd
  33. ;; Got answer:
  34. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2963
  35. ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
  36.  
  37. ;; QUESTION SECTION:
  38. ;126.xxx.31.103.in-addr.arpa. IN PTR
  39.  
  40. ;; ANSWER SECTION:
  41. 126.xxx.31.103.in-addr.arpa. 86400 IN PTR www.domain.com.
  42. 126.xxx.31.103.in-addr.arpa. 86400 IN PTR domain.com.
  43.  
  44. ;; AUTHORITY SECTION:
  45. xxx.31.103.in-addr.arpa. 86400 IN NS ns1.domain.com.
  46. xxx.31.103.in-addr.arpa. 86400 IN NS ns2.domain.com.
  47.  
  48. ;; ADDITIONAL SECTION:
  49. ns1.domain.com. 86400 IN A 103.31.xxx.126
  50. ns2.domain.com. 86400 IN A 103.31.xxx.126
  51.  
  52. ;; Query time: 0 msec
  53. ;; SERVER: 103.31.250.126#53(103.31.xxx.126)
  54. ;; WHEN: Sat May 4 11:33:57 2013
  55. ;; MSG SIZE rcvd: 160
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement