DNS problem with 8.1 and static ip address
Hello. For reasons that are unimportant here I want to have a static ip address on my ubuntu box. Using my ******* box I found some advice that said I should remove the Network Manager which I have done, and remove dhcp3-client (think that's right) which I have also done. Now I cannot get the DNS side of things to work so I cannot access any web sites by name, not even my Apache stuff that I started to play with "http//localhost", it worked OK until I started to try to get the static ip address working. I can access Google etc if I enter the ip address http://209.85.227.147/ so I have web access of a sort. I am using Ubuntu 8.1 32 bit on a small home network with a router so all fairly normal.
Here is the putput from ifconfig
Code:
eth0 Link encap:Ethernet HWaddr 00:0f:ea:ee:69:23
inet addr:192.168.0.11
Bcast:192.168.0.255
Mask:255.255.255.0
inet6 addr: fe80::20f:eaff:feee:6923/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:401 errors:0 dropped:0 overruns:0 frame:0
TX packets:216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80428 (80.4 KB) TX bytes:55531 (55.5 KB)
Interrupt:18 Base address:0xc400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:696 errors:0 dropped:0 overruns:0 frame:0
TX packets:696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:60270 (60.2 KB) TX bytes:60270 (60.2 KB)
Here is the output from /etc/network/interfaces
Code:
# The loopback interface
auto lo iface lo inet loopback
# The primary interface interface static
auto eth0
iface eth0 inet static
address 192.168.0.11
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
and the output from /etc/resolv.conf
Code:
nameserve 212.159.13.49
nameserve 212.159.13.50
nameserve 212.159.6.10
Any ideas gratefully received !
Neil R :confused:
Re: DNS problem with 8.1 and static ip address
Do you really mean nameserver?
Re: DNS problem with 8.1 and static ip address
1. The Ubuntu version number is 8.10 not 8.1 - it was released in 2008-October which is why the "10" part is there
2. I don't know why you were told to REMOVE packages from the machine to setup a static IP address, I would have gone into the network settings and just SET it to static, just like in Windows. Do you think one of those missing packages could be the cause of your problems?
Re: DNS problem with 8.1 and static ip address
Em yes that's what the instruction read
Re: DNS problem with 8.1 and static ip address
Part of what I read said that due to a bug in 8.10 (thanks for correction) if you leave them in all the static stuff gets overwritten.
Re: DNS problem with 8.1 and static ip address
What happens when you go to a command line and type the following:
Code:
nslookup www.google.com
Re: DNS problem with 8.1 and static ip address
Quote:
Originally Posted by
pbpersson
What happens when you go to a command line and type the following:
Code:
nslookup www.google.com
;; connection timed out; no servers could be reached
Re: DNS problem with 8.1 and static ip address
Quote:
Originally Posted by
neilg4rqn
and the output from /etc/resolv.conf
Code:
nameserve 212.159.13.49
nameserve 212.159.13.50
nameserve 212.159.6.10
Any ideas gratefully received !
This is going to sound dumb, but I just looked in my resolv.conf and it says nameserver in mine. Can you go in there, manually change it, and then see what happens? If it still does not work, try a reboot.
I was just reading another article, you can restart the networking components without rebooting by using the following command:
Code:
sudo /etc/init.d/networking restart
Re: DNS problem with 8.1 and static ip address
Quote:
Originally Posted by
pbpersson
This is going to sound dumb, but I just looked in my resolv.conf and it says
nameserver in mine. Can you go in there, manually change it, and then see what happens? If it still does not work, try a reboot.
I was just reading another article, you can restart the networking components without rebooting by using the following command:
Code:
sudo /etc/init.d/networking restart
Why is it that the best errors never become obvious until someone else walks up behind you and says "it's obvious, look what you have put there". Now I feel a right d*** head :lolflag:
many thanks pbperson
Long live ubuntu
Re: DNS problem with 8.1 and static ip address
I am just glad it was an easy fix \\:D/