If
/etc/resolv.conf
is empty then you probably need to restore the symbolic link/etc/resolv.conf
->../run/resolvconf/resolv.conf
. A quick way to do this is to runsudo dpkg-reconfigure resolvconf
.After setting IPv4 Settings | Method to
Manual
, add the correct IPv4 addresses for you nameservers to the "DNS servers" field.Make sure that
/etc/resolvconf/resolv.conf.d/head
contains only the following standard resolvconf header.
# 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
Make sure that
/etc/resolvconf/resolv.conf.d/base
contains nonameserver
lines.Delete the file
/etc/resolvconf/resolv.conf.d/tail
if present and make/etc/resolvconf/resolv.conf.d/tail
a symbolic link to/dev/null
. Dosudo ln -nsf /dev/null /etc/resolvconf/resolv.conf.d/tail
.Remove the
auto wlan0
andiface wlan0
stanzas from/etc/network/interfaces
.Make sure
/etc/network/interfaces
containsauto lo
andiface lo inet loopback
lines.Your
/etc/hosts
should not be empty.
/etc/hosts
should contain the following (with your hostname instead of HOSTNAME).
127.0.0.1 localhost127.0.1.1 HOSTNAME# The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters