Results 1 to 4 of 4

Thread: Ubuntu Server DNS Not Working

  1. #1
    Join Date
    Oct 2011
    Beans
    2

    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
    Code:
    /etc/resolv.conf
    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

  2. #2
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Ubuntu Server DNS Not Working

    ~
    Last edited by ahallubuntu; June 24th, 2013 at 11:25 PM.

  3. #3
    Join Date
    Oct 2011
    Beans
    2

    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
    Last edited by JamesKraw; April 24th, 2013 at 04:41 PM.

  4. #4
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    1,716
    Distro
    Ubuntu 12.04 Precise Pangolin

    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 ?
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

Tags for this Thread

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
  •