DNS: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:


* [http://www.zytrax.com/books/dns/ch8/ zytrax open — Chapter 8. DNS Resource Records (RRs)]
* [http://www.zytrax.com/books/dns/ch8/ zytrax open — Chapter 8. DNS Resource Records (RRs)]

== How-to ==

=== Reverse DNS lookup ===
Use option <code>-x</code> of ''dig'' command:
<source lang=bash>
dig +short -x 82.78.227.176
# 176.176-191.227.78.82.in-addr.arpa.
# ivorde.ro.
</source>

Or query record <code>PTR</code> in <code>in-addr.arpa</code> domain:
<source lang=bash>
dig +short ptr 176.227.78.82.in-addr.arpa.
# 176.176-191.227.78.82.in-addr.arpa.
# ivorde.ro.
</source>

Revision as of 19:56, 7 June 2016

References

A DNS database consists of one or more zone files used by the DNS server. Each zone holds a collection of structured resource records, the following of which are supported by the DNS Server service.
How DNS works.
Detailed explanations on how DNS work, applied to Linux.

How-to

Reverse DNS lookup

Use option -x of dig command:

dig +short -x 82.78.227.176
# 176.176-191.227.78.82.in-addr.arpa.
# ivorde.ro.

Or query record PTR in in-addr.arpa domain:

dig +short ptr 176.227.78.82.in-addr.arpa.
# 176.176-191.227.78.82.in-addr.arpa.
# ivorde.ro.