Ubuntu - After upgrade to 8.10 No Name resolution

Discussion in 'Installation/Configuration' started by DantePasquale, Dec 1, 2008.

  1. DantePasquale

    DantePasquale HowtoForge Supporter

    Hi All,

    I upgraded my server to 8.10 today and things looked really good. Unfortunately, name resolution is no longer working! Here's some info:

    2.6.27-10-generic #1 SMP Fri Nov 21 19:19:18 UTC 2008 x86_64 GNU/Linux

    I am running ISPConfig with it's own DNS. When I lookup one of my domains against my own name server things work fine:


    Code:
    dig @localhost www.cocoanet.us
    
    ; <<>> DiG 9.5.0-P2 <<>> @localhost www.cocoanet.us
    ; (1 server found)
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38226
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;www.cocoanet.us.		IN	A
    
    ;; ANSWER SECTION:
    www.cocoanet.us.	86400	IN	A	74.1.46.163
    
    ;; AUTHORITY SECTION:
    cocoanet.us.		86400	IN	NS	inferno.cocoanet.us.
    
    ;; ADDITIONAL SECTION:
    inferno.cocoanet.us.	86400	IN	A	74.1.46.162
    
    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Nov 30 19:03:30 2008
    ;; MSG SIZE  rcvd: 87

    However when hitting outside of my DNS nothing seems to work.


    Code:
    dig www.cocoanet.us
    
    ; <<>> DiG 9.5.0-P2 <<>> www.cocoanet.us
    ;; global options:  printcmd
    ;; connection timed out; no servers could be reached
    here's my resolv.conf:

    Code:
    domain cocoanet.us
    nameserver 64.105.179.138
    nameserver 64.105.189.26
    nameserver localhost
    search cocoanet.us
    Also, I removed the Network-Manager packages because they kept wiping out my resolv.conf, but when I replaced it with the proper file, things worked OK. But I can't get it to resolve at all with the proper resolv.conf without the network manager packages.

    I also removed apparmor thinking that may have something to dow with what's going on but no luck.

    Also, if I dig against my DNS with someone elses domain here's what I get:


    Code:
    dig @localhost www.covad.com
    
    ; <<>> DiG 9.5.0-P2 <<>> @localhost www.covad.com
    ; (1 server found)
    ;; global options:  printcmd
    ;; connection timed out; no servers could be reached
    and here's what's in syslog:

    Code:
    Nov 30 18:54:44 inferno named[14089]: too many timeouts resolving 'www.grand-am.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:44 inferno named[14089]: too many timeouts resolving 'mail-sfbay.sun.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'addons.mozilla.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'blogs.manageengine.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'www.google-analytics.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'feedproxy.google.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'fashionlegwear.blogspot.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'fb.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:45 inferno named[14089]: too many timeouts resolving 'images.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:46 inferno named[14089]: too many timeouts resolving 'ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:46 inferno named[14089]: too many timeouts resolving 'traffic.adventnet.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:46 inferno named[14089]: too many timeouts resolving 'evintl-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:46 inferno named[14089]: too many timeouts resolving 'evsecure-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'en-us.www.mozilla.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'js.zohostatic.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'mail-sfbay.sun.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'addons.mozilla.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'blogs.manageengine.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'www.google-analytics.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:47 inferno named[14089]: too many timeouts resolving 'feedproxy.google.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:48 inferno named[14089]: too many timeouts resolving 'fashionlegwear.blogspot.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:48 inferno named[14089]: too many timeouts resolving 'fb.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:48 inferno named[14089]: too many timeouts resolving 'images.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:48 inferno named[14089]: too many timeouts resolving 'ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'traffic.adventnet.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'evintl-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'evsecure-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'en-us.www.mozilla.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'js.zohostatic.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'mail-sfbay.sun.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'addons.mozilla.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:49 inferno named[14089]: too many timeouts resolving 'blogs.manageengine.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:50 inferno named[14089]: too many timeouts resolving 'www.google-analytics.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:50 inferno named[14089]: too many timeouts resolving 'feedproxy.google.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:50 inferno named[14089]: too many timeouts resolving 'docs.kde.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:50 inferno named[14089]: too many timeouts resolving 'fb.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:50 inferno named[14089]: too many timeouts resolving 'images.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'www.photography-lighting.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'traffic.adventnet.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'evintl-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'evsecure-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'en-us.www.mozilla.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:51 inferno named[14089]: too many timeouts resolving 'js.zohostatic.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'mail-sfbay.sun.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'addons.mozilla.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'blogs.manageengine.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'www.google-analytics.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'feedproxy.google.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:52 inferno named[14089]: too many timeouts resolving 'docs.kde.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:53 inferno named[14089]: too many timeouts resolving 'fb.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:53 inferno named[14089]: too many timeouts resolving 'images.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:53 inferno named[14089]: too many timeouts resolving 'www.photography-lighting.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:53 inferno named[14089]: too many timeouts resolving 'traffic.adventnet.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:54 inferno named[14089]: too many timeouts resolving 'evintl-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:54 inferno named[14089]: too many timeouts resolving 'evsecure-ocsp.verisign.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:54 inferno named[14089]: too many timeouts resolving 'en-us.www.mozilla.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:54 inferno named[14089]: too many timeouts resolving 'mail-sfbay.sun.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:55 inferno named[14089]: too many timeouts resolving 'docs.kde.org/A' (in '.'?): disabling EDNS
    Nov 30 18:54:55 inferno named[14089]: too many timeouts resolving 'fb.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:55 inferno named[14089]: too many timeouts resolving 'images.howtoforge.com/A' (in '.'?): disabling EDNS
    Nov 30 18:54:56 inferno named[14089]: too many timeouts resolving 'www.photography-lighting.com/A' (in '.'?): disabling EDNS

    Ideas anyone?

    Also, covad's DNS is OK as I'm connecting through the same network with my laptop.
     
  2. falko

    falko Super Moderator

    What's the output of
    Code:
    ifconfig
    ?
    Does
    Code:
    ping -c4 72.14.205.100
    work?
     
  3. DantePasquale

    DantePasquale HowtoForge Supporter

    here's output from ifconfig -a:

    Code:
    ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a4  
              inet addr:74.1.46.162  Bcast:74.1.46.175  Mask:255.255.255.240
              inet6 addr: fe80::2e0:81ff:fe72:eda4/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:18176 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4165 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:1466792 (1.4 MB)  TX bytes:540632 (540.6 KB)
              Interrupt:248 Base address:0x4000 
    
    eth0:1    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a4  
              inet addr:74.1.46.163  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:248 Base address:0x4000 
    
    eth0:2    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a4  
              inet addr:74.1.46.164  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:248 Base address:0x4000 
    
    eth0:3    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a4  
              inet addr:74.1.46.165  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:248 Base address:0x4000 
    
    eth1      Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a5  
              inet addr:74.1.46.166  Bcast:74.1.46.175  Mask:255.255.255.240
              inet6 addr: fe80::2e0:81ff:fe72:eda5/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:171523 errors:0 dropped:0 overruns:0 frame:0
              TX packets:121866 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:208902611 (208.9 MB)  TX bytes:26953315 (26.9 MB)
              Interrupt:249 Base address:0x6000 
    
    eth1:1    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a5  
              inet addr:74.1.46.167  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:249 Base address:0x6000 
    
    eth1:2    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a5  
              inet addr:74.1.46.168  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:249 Base address:0x6000 
    
    eth1:3    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a5  
              inet addr:74.1.46.169  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:249 Base address:0x6000 
    
    eth1:4    Link encap:Ethernet  HWaddr 00:e0:81:72:ed:a5  
              inet addr:74.1.46.174  Bcast:74.1.46.175  Mask:255.255.255.240
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:249 Base address:0x6000 
    
    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:26485 errors:0 dropped:0 overruns:0 frame:0
              TX packets:26485 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:9803845 (9.8 MB)  TX bytes:9803845 (9.8 MB)

    More strange information:


    From an outside network, I can't ping any of the addresses on eth0, but can ping the one bound to eth1, but not eth1:1-4!

    tcpdump on eth0 does show information going in/out of the nic.

    Oh, once I'm into the server via ssh to eth1 then I can ssh to all the IP addresses and netstat -tapn looks good!

    One thing that's also weird:

    Code:
    74.1.46.160     0.0.0.0         255.255.255.240 U         0 0          0 eth0
    74.1.46.160     0.0.0.0         255.255.255.240 U         0 0          0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
    0.0.0.0         74.1.46.161     0.0.0.0         UG        0 0          0 eth1
    I thought there should be a GW for each IP address????

    Also, I can ping out from the server, and can get to all websites that I want to use, but can't get in.

    I think Network-Manger is to blame, but I can't seem to figure out what is going on here :(
     
  4. DantePasquale

    DantePasquale HowtoForge Supporter

    More Information:

    I removed the network-manager package again and moved it's startup scripts,etc to make sure it doesn't start.

    Now, if I run 'ifup eth0' things work just fine. If I then run 'ifup eth1' then things break again.

    I see that there may be some new items in /etc/network/interfaces, specifically the "network" tag. Do I need this????

    The routing table looks hosed up really good to!

    Do you or anyone have a good /etc/network/interfaces file that has multiple NICs and multiple VIPs??????? I think it's now getting hosed on the syntax for doing such a thing, but searching the internet and forums doesn't help.

    HELP!!!!!!:confused:
     
  5. falko

    falko Super Moderator

    Can you post your /etc/network/interfaces?
     
  6. DantePasquale

    DantePasquale HowtoForge Supporter

    Code:
    auto lo
    iface lo inet loopback
    
    iface eth0 inet static
    address 74.1.46.162
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth0:1 inet static
    address 74.1.46.163
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth0:2 inet static
    address 74.1.46.164
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth0:3 inet static
    address 74.1.46.165
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth1 inet static
    address 74.1.46.166
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth1:1 inet static
    address 74.1.46.167
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth1:2 inet static
    address 74.1.46.168
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth1:3 inet static
    address 74.1.46.169
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    iface eth1:4 inet static
    address 74.1.46.174
    netmask 255.255.255.240
    gateway 74.1.46.161
    
    
    auto eth0
    auto eth0:1
    auto eth0:2
    auto eth0:3
    auto eth1
    auto eth1:1
    auto eth1:2
    auto eth1:3
    auto eth1:4
     
  7. falko

    falko Super Moderator

    Don't know if that is the solution, but the file should look like this:

    Code:
    auto lo
    iface lo inet loopback
    
    iface eth0 inet static
       address 74.1.46.162
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth0:1 inet static
       address 74.1.46.163
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth0:2 inet static
       address 74.1.46.164
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth0:3 inet static
       address 74.1.46.165
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth1 inet static
       address 74.1.46.166
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth1:1 inet static
       address 74.1.46.167
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth1:2 inet static
       address 74.1.46.168
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth1:3 inet static
       address 74.1.46.169
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    iface eth1:4 inet static
       address 74.1.46.174
       netmask 255.255.255.240
       gateway 74.1.46.161
    
    
    auto eth0
    auto eth0:1
    auto eth0:2
    auto eth0:3
    auto eth1
    auto eth1:1
    auto eth1:2
    auto eth1:3
    auto eth1:4
     
  8. DantePasquale

    DantePasquale HowtoForge Supporter

  9. DantePasquale

    DantePasquale HowtoForge Supporter

    Fixed:

    Appears that syntax that used to work in /etc/network/interfaces, no longer works. Basically, you need the to specify the IP, Netmask, Broadcast, Network and on only one interface specify the gateway. Looks like if you have multiple gateway entries for the same gateway things get really confused.

    Here's my /etc/network/interfaces that works:

    Code:
    auto lo
    iface lo inet loopback
    
    iface eth0 inet static
    address 74.1.46.162
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    gateway 74.1.46.161
    
    iface eth0:1 inet static
    address 74.1.46.163
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth0:2 inet static
    address 74.1.46.164
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth0:3 inet static
    address 74.1.46.165
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth1 inet static
    address 74.1.46.166
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth1:1 inet static
    address 74.1.46.167
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth1:2 inet static
    address 74.1.46.168
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth1:3 inet static
    address 74.1.46.169
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    iface eth1:4 inet static
    address 74.1.46.174
    netmask 255.255.255.240
    broadcast 74.1.46.175
    network 74.1.46.160
    
    
    auto eth0
    auto eth0:1
    auto eth0:2
    auto eth0:3
    auto eth1
    auto eth1:1
    auto eth1:2
    auto eth1:3
    auto eth1:4
     
: ubuntu

Share This Page