Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1794023
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 20:45:13

dig 命令或者 nslookup 命令

dig txt chaos version.bind @

1 :查询自己的 DNS 服务器版本

root@dns-internal.bob.com => root]#dig txt chaos version.bind @localhost

 

; <<>> DiG 9.2.1 <<>> txt chaos version.bind @localhost

;; global options:  printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47894

;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

 

;; QUESTION SECTION:

;version.bind.                  CH      TXT

 

;; ANSWER SECTION:

version.bind.           0       CH      TXT     "9.2.1"

 

;; Query time: 2 msec

;; SERVER: 127.0.0.1#53(localhost)

;; WHEN: Sun Apr 30 09:58:35 2006

;; MSG SIZE  rcvd: 48

 

[root@dns-internal.bob.com => root]#

 

[root@dns-internal.bob.com => root]#dig txt chaos version.bind @A.ROOT-SERVERS.NET

 

; <<>> DiG 9.2.1 <<>> txt chaos version.bind @A.ROOT-SERVERS.NET

;; global options:  printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48136

;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

 

;; QUESTION SECTION:

;version.bind.                  CH      TXT

 

;; ANSWER SECTION:

VERSION.BIND.           0       CH      TXT     "VGRS2"

 

;; Query time: 261 msec

;; SERVER: 198.41.0.4#53(A.ROOT-SERVERS.NET)

;; WHEN: Sun Apr 30 09:59:32 2006

;; MSG SIZE  rcvd: 60

 

[root@dns-internal.bob.com => root]#

 

 

阅读(2796) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~