1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Debian resolves non existing domains to itself

Discussion in 'Server Configuration and Hosting' started by rellek, Oct 8, 2013.

  1. rellek

    rellek Well-Known Member

    Hi,

    I have a problem. I have a Debian 7.0 server that resolves non-existent domains (like jhdjkhfkjhsdkjhksjdjkdfbhdfjkdf.com) to his own IP. I know from my Debian-based NAS (and my Mac) that *nix could just say "unknown host" when trying to ping it.

    Well, while this does seem like a cosmetic problem at the first try, this is a real problem when something goes wrong. It killed Akismet once as it resolved to itself and got 404 when trying to query.

    What's the problem?

    /etc/resolv.conf:
    Code:
    ### Hetzner Online AG installimage
    # nameserver config
    nameserver 213.133.98.98
    nameserver 213.133.99.99
    nameserver 213.133.100.100
    nameserver 2a01:4f8:0:a0a1::add:1010
    nameserver 2a01:4f8:0:a111::add:9898
    nameserver 2a01:4f8:0:a102::add:9999
    /etc/hosts:
    Code:
    ### Hetzner Online AG installimage
    # nameserver config
    # IPv4
    127.0.0.1 localhost
    144.76.110.48 riddick.sajonara.de riddick
    #
    # IPv6
    ::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
    2a01:4f8:192:602f::2 riddick.sajonara.de riddick
    ping google.com:
    Code:
    root@riddick:/home/rellek# ping google.com
    PING google.com (173.194.112.34) 56(84) bytes of data.
    64 bytes from fra07s28-in-f2.1e100.net (173.194.112.34): icmp_req=1 ttl=56 time=6.58 ms
    ^C
    --- google.com ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 6.586/6.586/6.586/0.000 ms
    root@riddick:/home/rellek# 
    ping jdfhkjfdhkjdfhjkdfhjkdfkj.com:
    Code:
    root@riddick:/home/rellek# ping jdfhkjfdhkjdfhjkdfhjkdfkj.com
    PING jdfhkjfdhkjdfhjkdfhjkdfkj.com.sajonara.de (144.76.110.48) 56(84) bytes of data.
    64 bytes from riddick.sajonara.de (144.76.110.48): icmp_req=1 ttl=64 time=0.013 ms
    64 bytes from riddick.sajonara.de (144.76.110.48): icmp_req=2 ttl=64 time=0.009 ms
    ^C
    --- jdfhkjfdhkjdfhjkdfhjkdfkj.com.sajonara.de ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.009/0.011/0.013/0.002 ms
    root@riddick:/home/rellek# 
    bind9 is currently stopped, so this should not be the problem.

    Edit:
    imagine the stars in rid****.sajonara.de as rid_d_i_c_k - it gets censored by XenForo, it seems. I was told ridd_ick is a movie with Vin Diesel which is why the server got named ridd_ick. *G*
     
  2. Floren

    Floren Well-Known Member

    First, disable IPv6. Then, tell us what happens if you use:
    Code:
    # cat /etc/resolv.conf
    search sajonara.de
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    # cat /etc/hosts
    127.0.0.1       localhost.localdomain   localhost
     
  3. rellek

    rellek Well-Known Member

    Hi,

    thanks for your reply, but nothing changed :(

    Code:
    root@riddick:/home/rellek# cat /etc/sysctl.d/disableipv6.conf
    net.ipv6.conf.all.disable_ipv6=1
    root@riddick:/home/rellek# cat /etc/resolv.conf 
    ### Hetzner Online AG installimage
    # nameserver config
    #nameserver 213.133.98.98
    #nameserver 213.133.99.99
    #nameserver 213.133.100.100
    #nameserver 2a01:4f8:0:a0a1::add:1010
    #nameserver 2a01:4f8:0:a111::add:9898
    #nameserver 2a01:4f8:0:a102::add:9999
    
    search sajonara.de
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    root@riddick:/home/rellek# cat /etc/hosts
    ### Hetzner Online AG installimage
    # nameserver config
    # IPv4
    127.0.0.1 localhost.localdomain localhost
    #144.76.110.48 riddick.sajonara.de riddick
    #
    # IPv6
    #::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
    #2a01:4f8:192:602f::2 riddick.sajonara.de riddick
    #72.233.69.89 rest.akismet.com
    #62.156.238.72 urls.api.twitter.comroot@riddick:/home/rellek# ping google.com
    PING google.com (173.194.70.139) 56(84) bytes of data.
    64 bytes from fa-in-f139.1e100.net (173.194.70.139): icmp_req=1 ttl=49 time=6.36 ms
    ^C
    --- google.com ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 6.369/6.369/6.369/0.000 ms
    root@riddick:/home/rellek# ping jdfhkjfdhkjdfhjkdfhjkdfkj.com
    PING jdfhkjfdhkjdfhjkdfhjkdfkj.com.sajonara.de (144.76.110.48) 56(84) bytes of data.
    64 bytes from riddick.sajonara.de (144.76.110.48): icmp_req=1 ttl=64 time=0.014 ms
    64 bytes from riddick.sajonara.de (144.76.110.48): icmp_req=2 ttl=64 time=0.007 ms
    ^C
    --- jdfhkjfdhkjdfhjkdfhjkdfkj.com.sajonara.de ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.007/0.010/0.014/0.004 ms
    root@riddick:/home/rellek# 
     

Share This Page