Ubuntu 13.10 no internet
O. Sinclair
o.sinclair at gmail.com
Mon Dec 2 04:14:06 UTC 2013
On 12/01/2013 04:37 PM, Little Girl wrote:
> Hey there,
>
> Errol Sapir wrote:
>
>> You will have to put in your info instead of the numbers I have. If
>> your system is DHCP the network setup is:
>>
>> auto lo
>> iface lo inet loopback
>>
>> auto eth0
>> iface eth0 inet dhcp
>>
>> I don't know what one writes for the dns servers for DHCP but would
>> guess that it is:
>>
>> dns-nameservers DHCP
>> (but I could be wrong).
>
> Ever since Kubuntu 12.04 the dns-nameservers line is required in
> the /etc/network/interfaces file. Without it you will not have
> internet service. That's a change from previous releases, which
> didn't need it. I have *no* idea why that change was made, but I'm
> sure glad we realized it or I wouldn't be able to write to you. (:
>
> You can use the gateway address for dns-nameservers. Here are two
> ways to get your gateway information (either one will work) with
> explanations of how each does its thing:
>
> netstat -r | awk '/default/ {print $2}'
>
> Explanation:
> The netstat command uses the -r option to get the kernel routing table and provides that as output to the awk command, which finds the line that begins with default and prints (displays) the contents of the 2nd column, which is your gateway.
>
> netstat -r | grep 'default' | awk '{ print $2}'
>
> Explanation:
> The netstat command uses the -r option to get the kernel routing table and provide that as output to the grep command, which searches for default and finds 6 columns of information. It then passes its findings to the awk command, which prints (displays) the contents of the 2nd column, which is your gateway.
>
> Someone also once recommended 8.8.8.8 as the address for
> dns-nameservers. It's Google's public DNS:
>
> https://developers.google.com/speed/public-dns/
>
> I wouldn't do that on a home computer (somehow I feel more secure
> with my internet provider's DNS), but I suppose it could be useful in
> a school or store or on a demonstration machine. (:
>
for some obscure security reason dns is now hidden in ubuntu. To get rid
of this behaviour (I do):
you need to edit /etc/NetworkManager/NetworkManager.conf and comment the
“dns=dnsmasq” line.
Open a terminal, and run
sudo nano /etc/NetworkManager/NetworkManager.conf
Then, make sure that the line
dns=dnsmasq
is commented like this:
#dns=dnsmasq
Now, restart network manager with the following command, and everything
should work properly.
sudo restart network-manager
please note:
use dnsmasq if using VPN
More information about the kubuntu-users
mailing list