The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can ping IP, but not any domain names.

Discussion in 'General Discussion' started by Clawr0a, Jun 13, 2012.

  1. Clawr0a

    Clawr0a Member

    Joined:
    Jun 11, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Over the last few days I've had a problem that I cannot seem to fix. I am able to ping IP addresses but if I tried to ping a domain like google.com I get an unknown host error. Here are some relevant outputs:

    cat /etc/resolv.conf
    search mydomain.com
    # Generated by NetworkManager
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    cat /etc/hosts
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    my_servers_ip server.2006scape.com server


    Upon viewing tcpdump I get a bunch of stuff like this:
    08:10:29.446828 IP my_server_ip.56524 > 8.8.4.4.domain: 59081+ PTR? 77.134.95.204.in-addr.arpa. (44)
    08:10:29.447246 IP my_server_ip.37614 > 8.8.4.4.domain: 35202+ PTR? 94.109.116.76.in-addr.arpa. (44)
    08:10:29.492122 IP my_server_ip.32779 > 8.8.4.4.domain: 29674+ PTR? 150.193.222.90.in-addr.arpa. (45)
    08:10:29.492136 IP my_server_ip.43422 > 8.8.4.4.domain: 58647+ PTR? 180.151.160.86.in-addr.arpa. (45)
    08:10:29.546196 IP my_server_ip.51546 > 8.8.4.4.domain: 17872+ PTR? 158.248.113.68.in-addr.arpa. (45)
    08:10:29.546212 IP my_server_ip.58762 > 8.8.4.4.domain: 13701+ PTR? 18.221.187.83.in-addr.arpa. (44)
    08:10:29.619833 IP my_server_ip.44064 > 8.8.4.4.domain: 33728+ PTR? 218.223.197.69.in-addr.arpa. (45)
    08:10:29.706233 IP my_server_ip.59461 > 8.8.4.4.domain: 2937+ PTR? 195.94.17.66.in-addr.arpa. (43)
    08:10:29.706271 IP my_server_ip.34661 > 8.8.4.4.domain: 32449+ PTR? 255.89.230.98.in-addr.arpa. (44)
    08:10:29.706812 IP my_server_ip.34036 > 8.8.4.4.domain: 14094+ PTR? 32.46.238.173.in-addr.arpa. (44)


    I can't seem to figure out the problem. I've tried disabling the firewall (csf), disabling various rules for it, etc. This is a problem because some of my services rely on having a host name for authentication. Even if this isn't best practices, the fact that my server can't resolve any domains is still a problem.

    I can ping hostname.domain.com, altho I can't ping ns1.domain.com or ns2.domain.com OR just domain.com. Both nslookup and dig are unable to connect to any domain names either.:confused:
     
  2. Clawr0a

    Clawr0a Member

    Joined:
    Jun 11, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Bump......
     
Loading...

Share This Page