[root@web1 /etc/mail/certs]# dig -x 127.0.0.1
Code:
; <<>> DiG 9.10.2 <<>> -x 127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5054
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 1800 IN PTR localhost.
;; Query time: 0 msec
;; SERVER: 10.1.1.2#53(10.1.1.2)
;; WHEN: Fri Jun 19 17:32:00 EDT 2015
;; MSG SIZE rcvd: 63
[root@web1 /etc/mail/certs]# cat /etc/hosts
Code:
::1 localhost localhost.mydomain.net
127.0.0.1 localhost localhost.mydomain.net
10.1.1.39 web1.ctest.net web1
10.1.1.39 web1.ctest.net.
same results with :
::1 localhost web1.ctest.net web1 web1.ctest.net.
127.0.0.1 localhost web1.ctest.net web1 web1.ctest.net.