Find the answer to your Linux question:
Results 1 to 6 of 6
Hello. I've been plundering around for about 6 hours now trying to fix this problem and I've yet not found any resolution, I've googled and tried to debug every part ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    4

    Ping does not resolve any domains.

    Hello.

    I've been plundering around for about 6 hours now trying to fix this problem and I've yet not found any resolution, I've googled and tried to debug every part of code I can, but with no results.

    I cannot resolve ANY domain names on my VPS.
    I tried to install bind9 yesterday and the host restarted my VPS today, maybe there's something in that? I did also install pptpd ealier, for VPN connections, however I never got it to work.

    I replaced . with dot cause I was not allowed to post URL's cause of the 15 posts or more.

    Anyhow:

    Code:
    root@static:~# ping google dot com
    ping: unknown host google dot com
    root@static:~#
    Code:
    root@static:~# nslookup google dot com
    ;; connection timed out; no servers could be reached
    Code:
    root@static:~# nslookup 127.0.0.1
    ;; connection timed out; no servers could be reached
    Code:
    root@static:~# ping 127.0.0.1
    PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
    64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.016 ms
    64 bytes from 127.0.0.1: icmp_req=2 ttl=64 time=0.019 ms
    ^C
    --- 127.0.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.016/0.017/0.019/0.004 ms
    Code:
    root@static:~# ping 209.85.149.103
    PING 209.85.149.103 (209.85.149.103) 56(84) bytes of data.
    64 bytes from 209.85.149.103: icmp_req=1 ttl=54 time=22.5 ms
    64 bytes from 209.85.149.103: icmp_req=2 ttl=54 time=22.3 ms
    64 bytes from 209.85.149.103: icmp_req=3 ttl=54 time=23.6 ms
    ^C
    --- 209.85.149.103 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2003ms
    rtt min/avg/max/mdev = 22.360/22.867/23.698/0.592 ms
    ^google dot com ip

    /etc/hosts:
    Code:
    127.0.0.1	localhost
    46.4.108.152	static.152.108.4.46 dot clients dot your-server dot de	static
    
    # 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
    /etc/resolv.conf:
    Code:
    search 152.108.4.46 dot clients dot your-server dot de
    nameserver 213.133.98.98
    nameserver 213.133.99.99
    I've tried with Google DNS and OpenDNS, still nothing.

    Default DNS:
    Code:
    root@static:/home/contex# dig @213.133.98.98 www dot google dot com
    
    ; <<>> DiG 9.7.3 <<>> @213.133.98.98 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Code:
    root@static:/home/contex# dig @213.133.99.99 www dot google dot com                     
    ; <<>> DiG 9.7.3 <<>> @213.133.99.99 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Google DNS:
    Code:
    root@static:/home/contex# dig @8.8.8.8 www dot google dot com
    
    ; <<>> DiG 9.7.3 <<>> @8.8.8.8 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    root@static:/home/contex#
    Code:
    root@static:/home/contex# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0c:29:e9:69:d4
              inet addr:46.4.108.152  Bcast:46.4.108.191  Mask:255.255.255.192
              inet6 addr: fe80::20c:29ff:fee9:69d4/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:509144 errors:0 dropped:0 overruns:0 frame:0
              TX packets:979575 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:33595555 (32.0 MiB)  TX bytes:1388954375 (1.2 GiB)
    
    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:18 errors:0 dropped:0 overruns:0 frame:0
              TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:1400 (1.3 KiB)  TX bytes:1400 (1.3 KiB)
    Code:
    root@static:~# netstat -an | grep ':53'
    udp        0      0 46.4.108.152:56362      213.133.99.99:53        ESTABLISHED
    udp        0      0 0.0.0.0:5353            0.0.0.0:*
    udp6       0      0 :::5353                 :::*
    Code:
    root@static:/home/contex# route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    localnet        *               255.255.255.192 U     0      0        0 eth0
    default         46.4.108.129    0.0.0.0         UG    0      0        0 eth0
    I do not have iptables.

    What can I do to fix this?

    Thanks!
    Last edited by Contex; 08-25-2011 at 09:14 PM.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    1) Which nameserver(s) is/are defined in /etc/resolv.conf
    2) Are they reachable?
    Code:
    dig @<NAMESERVER> www.google.com
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    4
    Default DNS:
    Code:
    root@static:/home/contex# dig @213.133.98.98 www dot google dot com
    
    ; <<>> DiG 9.7.3 <<>> @213.133.98.98 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Code:
    root@static:/home/contex# dig @213.133.99.99 www dot google dot com                     
    ; <<>> DiG 9.7.3 <<>> @213.133.99.99 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Google DNS:
    Code:
    root@static:/home/contex# dig @8.8.8.8 www dot google dot com
    
    ; <<>> DiG 9.7.3 <<>> @8.8.8.8 www dot google dot com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    root@static:/home/contex#
    Code:
    root@static:~# netstat -an | grep ':53'
    udp        0      0 46.4.108.152:56362      213.133.99.99:53        ESTABLISHED
    udp        0      0 0.0.0.0:5353            0.0.0.0:*
    udp6       0      0 :::5353                 :::*
    Code:
    root@static:/home/contex# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0c:29:e9:69:d4
              inet addr:46.4.108.152  Bcast:46.4.108.191  Mask:255.255.255.192
              inet6 addr: fe80::20c:29ff:fee9:69d4/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:509144 errors:0 dropped:0 overruns:0 frame:0
              TX packets:979575 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:33595555 (32.0 MiB)  TX bytes:1388954375 (1.2 GiB)
    
    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:18 errors:0 dropped:0 overruns:0 frame:0
              TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:1400 (1.3 KiB)  TX bytes:1400 (1.3 KiB)

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    hmm, routes are set, internet is reachable?
    If yes, then s/th blocks the requests, probably a fw.
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Aug 2011
    Posts
    4
    Code:
    root@static:/home/contex# route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    localnet        *               255.255.255.192 U     0      0        0 eth0
    default         46.4.108.129    0.0.0.0         UG    0      0        0 eth0
    Internet is OK, after all I am connected to the SSH through remote.
    How can I check which firewall is blocking it and how can I disable it? I've not played around with the firewall at all with the VPS.

  6. #6
    Just Joined!
    Join Date
    Aug 2011
    Posts
    4
    Hello, Im still stuck at the same place, what can I do?

    As i cannot use apt-get install cause it cannot resolve debian.org, I had to manually download the iptables deb package and install it with dpkg. I did that and then allowed these rules:

    Code:
    root@static:/opt# iptables-save
    # Generated by iptables-save v1.4.8 on Fri Aug 26 10:49:32 2011
    *filter
    :INPUT ACCEPT [160:13657]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [95:9848]
    -A INPUT -d 46.4.108.152/32 -p udp -m udp --sport 1024:65535 --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT
    -A INPUT -d 46.4.108.152/32 -p udp -m udp --sport 53 --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT
    -A OUTPUT -s 46.4.108.152/32 -p udp -m udp --sport 53 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
    -A OUTPUT -s 46.4.108.152/32 -p udp -m udp --sport 53 --dport 53 -m state --state ESTABLISHED -j ACCEPT
    COMMIT
    # Completed on Fri Aug 26 10:49:32 2011
    Still not working, what am I doing wrong?
    Last edited by Contex; 08-26-2011 at 08:55 AM.

Posting Permissions

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