0
点赞
收藏
分享

微信扫一扫

nslookup命令使用

爱情锦囊 2022-12-13 阅读 68


目录


  • ​​范例​​
  • ​​参考​​

范例

  • nslookup方式:指定dns服务器查询域名的4a记录

# nslookup -type=AAAA www.google.com 114.114.114.114
Server: 114.114.114.114
Address: 114.114.114.114#53

Non-authoritative answer:
Name: www.google.com
Address: 2001::45ab:f71c

  • dig 方式:指定dns服务器查询域名的4a记录

# dig @114.114.114.114 www.google.com AAAA

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> @114.114.114.114 www.google.com AAAA
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7378
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com. IN AAAA

;; ANSWER SECTION:
www.google.com. 74 IN AAAA 2001::45ab:f71c

;; Query time: 24 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Tue Mar 08 19:20:00 CST 2022
;; MSG SIZE rcvd: 71

参考


举报

相关推荐

0 条评论