I have a Laptop with Debian Jessie installed. At my home network, I could connect successfully to the internet (ping google.de
successful). At the external network, I can't ping google.de (result: unknown host google.de), although I can ping 8.8.8.8 and 8.8.4.4 (those are the Google public DNS servers)
I assume /etc/resolv.conf
was configured to use a private DNS resolver(nameserver 255.0.0.0) at home, therefore it doesn't work at the external network. Changing that to nameserver 8.8.8.8 and 8.8.4.4 as suggested in 1 doesn't help, it is overwritten after the dhclient
is run. chmod -w /etc/resolv.conf
(it has now only read permissions) also doesn't help. It is still overwritten when running dhclient
.
I use ifup
and ifdown
and those legacy tools to connect.
My /etc/network/interfaces
:
source /etc/network/interfaces.d/*
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <...>
wpa-psk <...>
</code>
Now my question:
You need to make sure DHCP (if in use) is configured correctly, and
your local DHCP server (usually your cable / adsl modem) is handing
out the right details.
How do I do that? I can't use this suggestion, because obviously I have no internet connection.
Best Answer
After you have setup your network device(s) with DHCP change the
/etc/resolv.conf
file manually, the file will only be overwritten whendhclient
is restarted and not constantly. When you changed the/etc/resolv.conf
file you should be able to perform hostname lookups and to be able to install theresolvconf
package. After the package is installed you can follow the instructions in the referenced question debian, problem with DNS to finish your's.