Everything was working just fine on office wifi, but suddenly I can't seem to browse any site. I can ping 8.8.8.8 just fine, but ping google.com
returns ping: unknown host google.com
. Also my browser can't seem to connect to any site.
I can browse just fine on other network tho.
Have tried solutions offered in
- I can ping IPs but can't resolve domains
- can ping google dns, but not google.de -> unknown host // worked in another network
but still can't work it out. I'm running Ubuntu 16.04
nslookup google.com
returned
;; connection timed out; no servers could be reached
cat /etc/resolvconf
returned
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
Best Answer
Your DNS resolving doesn't work.
If you are on DHCP, renew the lease.
Depends on distro (most probably networkmanager, ifdown/ifup combination may work as well). This happens quite often with resolvconfd and dnsmasq. You may need to restart the NetworkManager then
Again - command depends on distro, usually with systemd
If you are on static IP and have noone to ask or check their config, you may sniff (
tcpdump -nnvv -i <interface> udp port 53
).