Ubuntu Server DNS Not Working
I'm trying to configure a home server using Ubuntu 12.10.
I've setup static ip in
Code:
/etc/network/interfaces
and remove the DHCP client some other information I found however I'm having trouble finding how to configure DNS settings.
I've had a look at but that has the line about being overridden and the changes don't stick. I've also added the line
Code:
dns-nameservers 8.8.8.8 8.8.4.4
to my
Code:
/etc/network/interfaces
file under the eth0 settings so it looks like this,
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.13.23.211
netmask 255.255.255.0
network 10.13.23.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
But whenever I try to connect to an outside source, for instance, with ping I get the following error,
Code:
ping: unknown host www.google.com
Re: Ubuntu Server DNS Not Working
Re: Ubuntu Server DNS Not Working
I've corrected the two different subnets now. It should have been 10.13.23.1/24 but was just typo'd from a copy/paste. And the only reason it isn't being setup via router is because of habit. I used to run a openSuSe server and for years configured that manually. I probably could configure via router but would still like to know why it isn't working manually.
New /etc/network/interfaces looks like this
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.13.23.211
netmask 255.255.255.0
network 10.13.23.0
broadcast 10.13.23.255
gateway 10.13.23.1
dns-nameservers 8.8.8.8 8.8.4.4
Re: Ubuntu Server DNS Not Working
Looks O.K. to me, and the information should be used to create /etc/resolv.conf . So what are the contents of /etc/resolv.conf ?