Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: DNS problem with 8.1 and static ip address

  1. #1
    Join Date
    Jun 2007
    Location
    Norfolk, England
    Beans
    71
    Distro
    Ubuntu 9.10 Karmic Koala

    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 windoze 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
    Last edited by neilg4rqn; March 29th, 2009 at 03:30 PM. Reason: it,s not 7. whatever but I can't alter that. it's 8.10

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    21,568
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: DNS problem with 8.1 and static ip address

    nameserve
    Do you really mean nameserver?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Feb 2008
    Location
    Phoenix, Arizona
    Beans
    850
    Distro
    Ubuntu 14.04 Trusty Tahr

    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?
    If variety is the spice of life, monotony must therefore be the kiss of death.

  4. #4
    Join Date
    Jun 2007
    Location
    Norfolk, England
    Beans
    71
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: DNS problem with 8.1 and static ip address

    Em yes that's what the instruction read

  5. #5
    Join Date
    Jun 2007
    Location
    Norfolk, England
    Beans
    71
    Distro
    Ubuntu 9.10 Karmic Koala

    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.

  6. #6
    Join Date
    Feb 2008
    Location
    Phoenix, Arizona
    Beans
    850
    Distro
    Ubuntu 14.04 Trusty Tahr

    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
    If variety is the spice of life, monotony must therefore be the kiss of death.

  7. #7
    Join Date
    Jun 2007
    Location
    Norfolk, England
    Beans
    71
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: DNS problem with 8.1 and static ip address

    Quote Originally Posted by pbpersson View Post
    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

  8. #8
    Join Date
    Feb 2008
    Location
    Phoenix, Arizona
    Beans
    850
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS problem with 8.1 and static ip address

    Quote Originally Posted by neilg4rqn View Post
    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
    Last edited by pbpersson; March 29th, 2009 at 03:40 PM. Reason: added restart command at end
    If variety is the spice of life, monotony must therefore be the kiss of death.

  9. #9
    Join Date
    Jun 2007
    Location
    Norfolk, England
    Beans
    71
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: DNS problem with 8.1 and static ip address

    Quote Originally Posted by pbpersson View Post
    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
    many thanks pbperson
    Long live ubuntu

  10. #10
    Join Date
    Feb 2008
    Location
    Phoenix, Arizona
    Beans
    850
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS problem with 8.1 and static ip address

    I am just glad it was an easy fix
    If variety is the spice of life, monotony must therefore be the kiss of death.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •