Reverse DNS lookup returns the results in "hostname.domain.comx.x.x.in-addr.arpa." format instead of "hostname.domain.com" format

Solution Verified - Updated -

Issue

Reverse DNS lookup returns the results in "hostname.domain.comx.x.x.in-addr.arpa." format instead of "hostname.domain.com" format.

dig -x 10.10.10.10

; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.3 <<>> -x 10.10.10.10
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63349
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;10.10.10.10.in-addr.arpa.  IN  PTR

;; ANSWER SECTION:
10.10.10.10.in-addr.arpa. 86400 IN  PTR server.example.com.10.10.10.in-addr.arpa.

Expected output :

dig -x 10.10.10.10

; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.3 <<>> -x 10.10.10.10
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63349
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;10.10.10.10.in-addr.arpa.  IN  PTR

;; ANSWER SECTION:
10.10.10.10.in-addr.arpa. 86400 IN  PTR server.example.com.

Environment

  • Red Hat Enterprise Linux 7.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.