Problems with DNS

Discussion in 'Server Operation' started by thesquib, May 1, 2006.

  1. thesquib

    thesquib New Member

    Hey all,

    I've been running through a few issues on a test server i've setup using the perfect debian setup. Its been sitting around for a month or so, and isn't not in use for another month.

    Basically service drops every now and again.. and i'm pretty sure its DNS related. Currently I cannot ping any ip or name outside of our local network. If I try and ping a name I do not get any response. If I ping an ip address I get the same result. However, on the reverse side of things, web services running on the server are accessible.

    I have been attempting to fix up an issue where all network services go down on the machine (web services, mail, etc) and this is probably related. I'm new to all of this so I may have configured things the wrong way.

    Cheers for any help.

    this is my /sbin/route
    Destination Gateway Genmask Flags Metric Ref Use Iface
    203.109.145.64 * 255.255.255.192 U 0 0 0 eth1
    default 203.109.145.66 0.0.0.0 UG 0 0 0 eth1

    Now this is a bit confusing - because technically 203.109.145.64 doesn't exist.. And i'm not sure how it got into the route table.


    When I attempt a dig:
    ; <<>> DiG 9.2.4 <<>> google.co.nz
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached


    When I attempt to restart networking:
    >Setting up IP spoofing protection: rp_filter.
    >Reconfiguring network interfaces...ifup: interface lo already configured
    >done.


    Contents of resolv.conf:
    search thinkdata.co.nz
    nameserver 203.109.145.75


    When I check the hostname:
    hostname
    torpedo


    The contents of the hosts file:
    127.0.0.1 localhost.thinkdata.co.nz localhost
    203.109.145.75 torpedo.thinkdata.co.nz torpedo

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
     
  2. falko

    falko Super Moderator

    Is your server in a local network (behind a router), or is it connected directly to the internet? If the first, what's the gateway IP address? What's the server's IP address?
    What's in /etc/network interfaces? What's the output of
    Code:
    ifconfig
    ?
     
  3. thesquib

    thesquib New Member

    eth1 Link encap:Ethernet HWaddr 00:08:C7:91:C4:BB
    inet addr:203.109.145.75 Bcast:203.109.145.255 Mask:255.255.255.192
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:337109 errors:1 dropped:0 overruns:0 frame:1
    TX packets:55375 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:28037319 (26.7 MiB) TX bytes:48418516 (46.1 MiB)
    Interrupt:34 Base address:0xc020 Memory:f4be0000-f4be0038

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:678300 errors:0 dropped:0 overruns:0 frame:0
    TX packets:678300 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:63058004 (60.1 MiB) TX bytes:63058004 (60.1 MiB)
     
  4. falko

    falko Super Moderator

    So it's connected directly to the internet? What's in /etc/network interfaces?
     
  5. thesquib

    thesquib New Member

    <interfaces>

    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth1
    iface eth1 inet static
    address 203.109.145.75
    netmask 255.255.255.192
    gateway 203.109.145.66
    network 203.109.145.0
    broadcast 203.109.145.255
     
  6. thesquib

    thesquib New Member

    I can ping fine now... i had the gateway wrong. sorry to waste your time on that. I must have mistyped it when I was going through all my config files in an effort to fix the weird problem with the drop in mail/web/ssh services. will continue monitoring it
     
  7. falko

    falko Super Moderator

  8. thesquib

    thesquib New Member

    Thanks falko,
     

Share This Page