ping incorrectly pinging 127.0.0.1

Posted by AlexW on Server Fault See other posts from Server Fault or by AlexW
Published on 2013-11-09T15:45:36Z Indexed on 2013/11/09 15:56 UTC
Read the original article Hit count: 245

Filed under:
|
|
|
|

I've got an odd DNS issue. I'm running a dual ipv4/ipv6 environment on Linux.

Pinging some sites results in ping pinging 127.0.0.1. e.g.

#> ping authserver.mojang.com
PING authserver.mojang.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.043 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.058 ms
--- authserver.mojang.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.043/0.048/0.058/0.010 ms

Dig, however correctly returns the following:

# dig authserver.mojang.com

; <<>> DiG 9.9.3-P2 <<>> authserver.mojang.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15800
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;authserver.mojang.com.         IN      A

;; ANSWER SECTION:
authserver.mojang.com.  5       IN      A       54.235.119.47

;; Query time: 14 msec
;; SERVER: 2001:4860:4860::8888#53(2001:4860:4860::8888)
;; WHEN: Sat Nov 09 15:34:40 GMT 2013
;; MSG SIZE  rcvd: 66

I'm confused! My web browser returns the correct website, and the same computer booted into Windows also works correctly.

© Server Fault or respective owner

Related posts about linux

Related posts about dns