Ping hostname returns another hostname in output : what does it mean

domain-name-systemnetworkingpingreverse-dns

When I ping the server sip3.voip-centrex.net, I get this output:

PING sip3.voip-centrex.net (194.98.81.144) 56(84) bytes of data.
64 bytes from mpfrrelay.michaelpage.fr (194.98.81.144): icmp_req=1 ttl=50 time=35.7 ms
64 bytes from mpfrrelay.michaelpage.fr (194.98.81.144): icmp_req=2 ttl=50 time=38.1 ms
64 bytes from mpfrrelay.michaelpage.fr (194.98.81.144): icmp_req=3 ttl=50 time=34.6 ms

Domain name does not match. What does it mean ?

Best Answer

The DNS system has many kinds of records. "A" records map names to IP addresses. "PTR" records map IP addresses to names. The mapping is not always transitive, and there can be multiple A records that map the the same IP address.

Strictly speaking, PTR records map special names to other names. The IP address 194.98.81.144 first must be translated to 144.81.98.194.in-addr.arpa, then a PTR request can be made. You can see this in the detailed output of the dig command:

$ dig -x 194.98.81.144

; <<>> DiG 9.8.1-P1 <<>> -x 194.98.81.144
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21897
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;144.81.98.194.in-addr.arpa.    IN  PTR

;; ANSWER SECTION:
144.81.98.194.in-addr.arpa. 86400 IN    PTR mpfrrelay.michaelpage.fr.

;; Query time: 148 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jan 26 08:47:32 2013
;; MSG SIZE  rcvd: 82