root@maoli-virtual-machine:/home/maoli# dig @114.114.114.114 registry-1.docker.io
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35506
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;registry-1.docker.io. IN A
;; ANSWER SECTION:
registry-1.docker.io. 600 IN A 52.55.198.220
registry-1.docker.io. 600 IN A 54.174.39.59
registry-1.docker.io. 600 IN A 52.201.142.14
registry-1.docker.io. 600 IN A 52.202.253.107
registry-1.docker.io. 600 IN A 54.152.200.115
registry-1.docker.io. 600 IN A 52.87.94.70
registry-1.docker.io. 600 IN A 54.210.105.17
registry-1.docker.io. 600 IN A 34.228.211.243
;; Query time: 20 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Fri Feb 21 10:29:28 CST 2020
;; MSG SIZE rcvd: 177
root@maoli-virtual-machine:/home/maoli# dig @114.114.114.114 registry-1.docker.io
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58588
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;registry-1.docker.io. IN A
;; ANSWER SECTION:
registry-1.docker.io. 600 IN A 54.174.39.59
registry-1.docker.io. 600 IN A 52.201.142.14
registry-1.docker.io. 600 IN A 52.202.253.107
registry-1.docker.io. 600 IN A 54.152.200.115
registry-1.docker.io. 600 IN A 52.87.94.70
registry-1.docker.io. 600 IN A 54.210.105.17
registry-1.docker.io. 600 IN A 34.228.211.243
registry-1.docker.io. 600 IN A 52.55.198.220
;; Query time: 21 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Fri Feb 21 10:30:54 CST 2020
;; MSG SIZE rcvd: 177
root@maoli-virtual-machine:/home/maoli# vim /etc/hosts
##添加
52.55.198.220 registry-docker.io
润森笔记
发布了790 篇原创文章 · 获赞 100 · 访问量 14万+
他的留言板
关注