Is DNS working?
Try to ping google.com and if it is not working, ping for example 8.8.8.8 to assure that problem is with DNS and not with the whole networking.
Public Google's DNS runs on 8.8.8.8.
/etc/resolv.conf
Config file with nameservers. It can contain the gateway to the provider and/or the localhost (IP 127.0.1.1).
It is created automatically after boot and it can be customized by /etc/resolvconf/resolv.conf.d and by dnsmasq (see further).
Local DNS resolver: dnsmasq
Balík dnsmasq, ale pokud je v systému NetworkManager (Ubuntu), tak je místo něj předinstalován dnsmasq-base.
Pokud je v systmu NetworkManager, tak v konfiguráku /etc/NetworkManager/NetworkManager.conf se dá dnsmasq vypnout/zapnout. V Ubuntu 12.04 by mělo být vyplé, protože jsou s tím nějaké problémy.
Kontrola: měl by běžet proces dnsmasq a tento proces by měl naslouchat na 127.0.1.1:53
DNS resolving priorities on Ubuntu
- /etc/hosts (this file is used to override the resolver)
- network-manager (the network icon on your desktop)
- dnsmasq-base (local resolver, installed by default, unconfigurable)
- dnsmasq (full configurable version that can be added manually)
- resolvconf (manages the contents of the file “/etc/resolv.conf”)
- avahi-daemon (a.k.a. ZeroConf or Bonjour, this uses .local)
- apache2 (the webserver needs to respond to the .dev hostname)