Cannot ping by host name [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
This question already has an answer here:
âping: unknown host google.comâ but IPs works fine [duplicate]
4 answers
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
4 answers
I have a strange situation. Pinging by ip works fine, but by host name fails.
My observations:
nslookup -type=ns google.com
;; connection timed out; no servers could be reached
In one window I called:
ping google.com
ping: unknown host google.com
and in the other window I had this:
sudo tcpdump -n -i eno1 |grep -A5 172.27.1.100.53 # this is my dns server
11:06:57.336938 IP 172.27.6.77.48852 > 172.27.1.100.53: 61526+ A? google.com. (28)
11:06:57.337151 IP 172.27.1.100.53 > 172.27.6.77.48852: 61526 1/0/0 A 172.217.12.110 (44)
11:06:57.337170 IP 172.27.6.77 > 172.27.1.100: ICMP 172.27.6.77 udp port 48852 unreachable, length 80
As you can see in the tcpdump there was a response from DNS server and google.com was properly resolved: 172.217.12.110.
What's going on here? Can I somehow debug it more?
I know that when I restart my network it would work fine, because it happened few times earlier. This is only workaround and it doesn't resolve my isssue.
I am using ubuntu 16.04 (desktop).
Thanks.
networking dns hostname tcpdump
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:25
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
0
down vote
favorite
This question already has an answer here:
âping: unknown host google.comâ but IPs works fine [duplicate]
4 answers
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
4 answers
I have a strange situation. Pinging by ip works fine, but by host name fails.
My observations:
nslookup -type=ns google.com
;; connection timed out; no servers could be reached
In one window I called:
ping google.com
ping: unknown host google.com
and in the other window I had this:
sudo tcpdump -n -i eno1 |grep -A5 172.27.1.100.53 # this is my dns server
11:06:57.336938 IP 172.27.6.77.48852 > 172.27.1.100.53: 61526+ A? google.com. (28)
11:06:57.337151 IP 172.27.1.100.53 > 172.27.6.77.48852: 61526 1/0/0 A 172.217.12.110 (44)
11:06:57.337170 IP 172.27.6.77 > 172.27.1.100: ICMP 172.27.6.77 udp port 48852 unreachable, length 80
As you can see in the tcpdump there was a response from DNS server and google.com was properly resolved: 172.217.12.110.
What's going on here? Can I somehow debug it more?
I know that when I restart my network it would work fine, because it happened few times earlier. This is only workaround and it doesn't resolve my isssue.
I am using ubuntu 16.04 (desktop).
Thanks.
networking dns hostname tcpdump
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:25
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
âping: unknown host google.comâ but IPs works fine [duplicate]
4 answers
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
4 answers
I have a strange situation. Pinging by ip works fine, but by host name fails.
My observations:
nslookup -type=ns google.com
;; connection timed out; no servers could be reached
In one window I called:
ping google.com
ping: unknown host google.com
and in the other window I had this:
sudo tcpdump -n -i eno1 |grep -A5 172.27.1.100.53 # this is my dns server
11:06:57.336938 IP 172.27.6.77.48852 > 172.27.1.100.53: 61526+ A? google.com. (28)
11:06:57.337151 IP 172.27.1.100.53 > 172.27.6.77.48852: 61526 1/0/0 A 172.217.12.110 (44)
11:06:57.337170 IP 172.27.6.77 > 172.27.1.100: ICMP 172.27.6.77 udp port 48852 unreachable, length 80
As you can see in the tcpdump there was a response from DNS server and google.com was properly resolved: 172.217.12.110.
What's going on here? Can I somehow debug it more?
I know that when I restart my network it would work fine, because it happened few times earlier. This is only workaround and it doesn't resolve my isssue.
I am using ubuntu 16.04 (desktop).
Thanks.
networking dns hostname tcpdump
This question already has an answer here:
âping: unknown host google.comâ but IPs works fine [duplicate]
4 answers
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
4 answers
I have a strange situation. Pinging by ip works fine, but by host name fails.
My observations:
nslookup -type=ns google.com
;; connection timed out; no servers could be reached
In one window I called:
ping google.com
ping: unknown host google.com
and in the other window I had this:
sudo tcpdump -n -i eno1 |grep -A5 172.27.1.100.53 # this is my dns server
11:06:57.336938 IP 172.27.6.77.48852 > 172.27.1.100.53: 61526+ A? google.com. (28)
11:06:57.337151 IP 172.27.1.100.53 > 172.27.6.77.48852: 61526 1/0/0 A 172.217.12.110 (44)
11:06:57.337170 IP 172.27.6.77 > 172.27.1.100: ICMP 172.27.6.77 udp port 48852 unreachable, length 80
As you can see in the tcpdump there was a response from DNS server and google.com was properly resolved: 172.217.12.110.
What's going on here? Can I somehow debug it more?
I know that when I restart my network it would work fine, because it happened few times earlier. This is only workaround and it doesn't resolve my isssue.
I am using ubuntu 16.04 (desktop).
Thanks.
This question already has an answer here:
âping: unknown host google.comâ but IPs works fine [duplicate]
4 answers
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
4 answers
networking dns hostname tcpdump
networking dns hostname tcpdump
asked Apr 18 at 9:22
dePablo
11
11
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:25
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Fabby, David Foerster, George Udosen, Eric Carvalho Apr 20 at 19:25
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20
add a comment |Â
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .
It looks this solves my issue.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .
It looks this solves my issue.
add a comment |Â
up vote
0
down vote
accepted
I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .
It looks this solves my issue.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .
It looks this solves my issue.
I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .
It looks this solves my issue.
answered Apr 20 at 9:18
dePablo
11
11
add a comment |Â
add a comment |Â
Can you change your nameserver to 8.8.8.8 in /etc/resolv.conf ?
â ponsfrilus
Apr 18 at 12:08
Thanks guys for suggestions. I have disabled dnsmasq (so it caused change of /etc/resolv.conf) and now it looks it works.
â dePablo
Apr 20 at 9:20