Quote:
Originally Posted by Matir
Try this:
Code:
dig -x xxx.xx.xx.118 @127.0.0.1
This should show you the server responding to the reverse DNS query. The nameservers that appear in the "Authority Section" should have reverse records (that is, PTR records) for your IP & hostname. See the BIND documentation or http://www.centos.org/docs/5/html/5....e-reverse.html for setting up reverse zones and PTR records if you are the administrator of the authoritative server.
|
The information that you went to also apply in the Debian because I never used the CentOS.
Below are my files:
mail:/etc/bind# dig -x xxx.xx.xx.118 @127.0.0.1
; <<>> DiG 9.3.4-P1.1 <<>> -x xxx.xx.xx.118 @127.0.0.1
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY,
status: SERVFAIL, id: 64008
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;118.17.18.201.in-addr.arpa. IN PTR
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 19 16:14:21 2009
;; MSG SIZE rcvd: 44
and
mail:/etc/bind# dig -x mydomain.com @127.0.0.1
; <<>> DiG 9.3.4-P1.1 <<>> -x mydomain.com @127.0.0.1
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1214
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;com.mydomain.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
in-addr.arpa. 10800 IN SOA A.ROOT-SERVERS.NET. dns-ops.ARIN.NET. 2009051904 1800 900 691200 10800
;; Query time: 41 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 19 16:15:40 2009
;; MSG SIZE rcvd: 119