[ dns ]

DNS · ns5.cloudflare.com

A, AAAA, MX, NS, TXT, SOA and CAA records for any domain, or the PTR record of an IP address with a forward-confirmation check.

DNS records for ns5.cloudflare.com

{ } JSON
AIPv4 addresses
AAAAIPv6 addresses

Looked up from our resolver; results are cached for up to 5 minutes. DNS only: we never connect to the host itself.

[ how it works ]

Forward and reverse DNS in one place

Enter a domain and we query its A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, plus the DMARC policy at _dmarc. Each address links to its location and network owner.

Enter an IP address and we look up its PTR record, then resolve that name again to check that it points back to the same IP (forward-confirmed reverse DNS).

Use it from code

curl https://ipinfo.dkly.net/dns/example.com.json
curl https://ipinfo.dkly.net/dns/8.8.8.8.json

Free, up to 60 lookups per hour per visitor. Returns query, type, records, ptr and forward_confirmed.

Use it from the API → with your API key: GET /api/dns/{domain-or-ip}

[ FAQ ]

Frequently asked questions

What is reverse DNS?

Reverse DNS turns an IP address back into a host name. It uses PTR records stored under special zones: in-addr.arpa for IPv4 and ip6.arpa for IPv6. The owner of the IP block (usually the hosting company or ISP), not the domain owner, controls them.

What is FCrDNS (forward-confirmed reverse DNS)?

FCrDNS means the PTR host name of an IP also resolves forward (A or AAAA record) to the same IP. A match shows the network owner and the domain owner agree. Mail servers and spam filters often require it, and it is a common check before trusting a crawler or bot that claims to be from a known company.

Why does an IP have no PTR record?

PTR records are optional. Many home connections, cloud servers and IPv6 addresses simply have none, or the provider only sets them on request. A missing PTR is not an error, although mail sent from such an address is more likely to be rejected.

What do MX, TXT and CAA records mean?

MX records name the mail servers for a domain, tried in order of their priority number (lowest first). TXT records hold free text, used for SPF (which servers may send mail), DMARC (published at _dmarc.domain), DKIM keys and site-verification tokens. CAA records list the certificate authorities that may issue TLS certificates for the domain.

What are A, AAAA, NS and SOA records?

A records map a name to IPv4 addresses and AAAA records to IPv6 addresses. NS records name the authoritative name servers for the zone. The SOA (start of authority) record holds the primary name server, the administrator mailbox, the zone serial number and the refresh and expiry timers.