溫馨提示×

Ubuntu中如何使用dig命令

小新
452
2021-03-02 11:04:34
欄目: 智能運維

Ubuntu中如何使用dig命令

Ubuntu中使用dig命令的示例:

1.打開終端命令行模式。

2.使用dig命令來查詢單個主機的信息。

yisu@yisu:~$ dig kemok4.com

; <<>> DiG 9.11.3-1Ubuntu1.5-Ubuntu <<>> kemok4.com

;; global options: +cmd

;; Got answer:

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

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

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 65494

;; QUESTION SECTION:

;kemok4.com. IN A

;; ANSWER SECTION:

kemok4.com. 5 IN A 122.228.238.15

kemok4.com. 5 IN A 106.42.25.203

;; Query time: 10 msec

;; SERVER: 127.0.0.53#53(127.0.0.53)

;; WHEN: Sun Mar 03 10:55:35 CST 2019

;; MSG SIZE rcvd: 77

0