Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### DNS on my local machine
- $ nslookup google.de
- Server: 127.0.0.53
- Address: 127.0.0.53#53
- Non-authoritative answer:
- Name: google.de
- Address: 142.250.179.163
- Name: google.de
- Address: 2a00:1450:400e:802::2003
- ### DNS on docker ###
- $ sudo docker run -it tutum/dnsutils nslookup google.de
- ;; connection timed out; no servers could be reached
- ### Ping from within docker ###
- $ sudo docker run -it tutum/dnsutils ping 1.1.1.1
- PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
- From 172.17.0.2 icmp_seq=1 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=2 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=3 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=5 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=6 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=7 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=8 Destination Host Unreachable
- From 172.17.0.2 icmp_seq=9 Destination Host Unreachable
- ^C
- --- 1.1.1.1 ping statistics ---
- 11 packets transmitted, 0 received, +8 errors, 100% packet loss, time 10232ms
- pipe 4
- ### I then tried restarting the docker demon - and it started working again ###
- $ sudo systemctl restart docker
- $ sudo docker run -it tutum/dnsutils nslookup google.de
- Server: 85.214.7.22
- Address: 85.214.7.22#53
- Non-authoritative answer:
- Name: google.de
- Address: 142.250.179.163
- ### But, the very next docker run failed again
- $ sudo docker run -it tutum/dnsutils nslookup google.de
- ;; connection timed out; no servers could be reached
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement