DNS Lookup Examples · Example 10 of 13 in Record Types

The PTR record of 8.8.8.8: reverse DNS, asked for as 8.8.8.8.in-addr.arpa, answers dns.google.

Asks for the PTR record of 8.8.8.8.in-addr.arpa.

domain does not take an IP address, but a reverse-DNS name works: the address's octets in reverse order under in-addr.arpa. The answer is the host name of 8.8.8.8, dns.google..

Request

What this example sends. Every parameter is documented on DNS; the exact request is in the code panel.

ParameterValue
domainquery8.8.8.8.in-addr.arpa
typequeryPTR

Reference updated