Short answer
A PTR record points an address to a domain name, which is reverse DNS. RFC 1035 defines PTR as type 12. The data is a domain name, not an address, and it does not trigger extra lookups. IPv4 reverse names live under IN-ADDR.ARPA. A and AAAA records do the opposite: they point a name at an address.
Last verified against the sources listed below.
Key takeaways
- RFC 1035 lists PTR as type 12, a domain name pointer.
- The PTR data is a domain name, and PTR causes no additional section processing.
- IPv4 address 10.2.0.52 is looked up as 52.0.2.10.IN-ADDR.ARPA.
- IANA lists in-addr.arpa for IPv4 and ip6.arpa for IPv6 reverse mapping.
- Cloudflare says a PTR names the allowed hosts for an IP and belongs in a reverse zone.
What is a PTR record is a question about reverse DNS. A PTR record maps an address to a name. An A record or an AAAA record maps a name to an address.
RFC 1035 defines PTR as type 12, “a domain name pointer,” and it builds the IPv4 reverse tree under IN-ADDR.ARPA.
Web hosting is where people first meet the forward records, because a site needs a name that resolves to an address.
How the internet works is the path a lookup takes.
MX versus DNS is a different record inside the same system, used for mail rather than for reverse names.
What does a PTR record hold?
A PTR record holds a domain name, not an address. RFC 1035, from November 1987, says the RDATA is PTRDNAME, a domain name that points to some location in the domain name space. PTR records cause no additional section processing.
They are simple data. They do not do the alias processing that CNAME does.
The type value is 12. Class IN, value 1, is the Internet class you will publish. The owner name is the reversed address in a special domain.
The PTR value is the hostname you want that address to present. MDN’s DNS glossary describes the pair of directions in one line: a lookup maps a name such as mozilla.org to an address, and a reverse lookup finds the name associated with an address.
Cloudflare’s record guide says a PTR record specifies the allowed hosts for a given IP address. On Cloudflare, PTR records are used for reverse DNS and should preferably be added to reverse zones. That is the same direction as the RFC, stated as an operational rule for their DNS product.
How does IN-ADDR.ARPA work?
IN-ADDR.ARPA is the IPv4 reverse tree. RFC 1035 says the Internet uses that special domain for address-to-host mapping and for finding gateways. The intent is a method that finds the data without searching the whole namespace.
The tree starts at IN-ADDR.ARPA and follows the address structure.
Names have up to four labels plus the IN-ADDR.ARPA suffix. Each label is one octet, a decimal from 0 to 255. Leading zeros are omitted, except a zero octet, which is a single 0.
The RFC’s worked example puts address 10.2.0.52 at 52.0.2.10.IN-ADDR.ARPA. The reversal is deliberate. It lets 10.IN-ADDR.ARPA be a zone for one network, separate from another network’s zone.
A full address uses all four labels. The RFC shows a resolver that wants the name for 10.0.0.6 asking for QTYPE=PTR, QCLASS=IN, QNAME=6.0.0.10.IN-ADDR.ARPA, and receiving PTR MULTICS.MIT.EDU. Network nodes, with fewer labels, can hold PTR records for gateways on that network.
Both the gateway pointers and the host pointers use PTR to name the host in the normal domain.
IANA still lists in-addr.arpa for mapping IPv4 addresses to Internet domain names, with RFC 1035 as the reference. The .arpa domain is the Address and Routing Parameter Area, for infrastructure names. IANA also lists in-addr-servers.arpa for the authoritative servers of that zone, citing RFC 5855.
How do A and AAAA differ?
A and AAAA answer the forward question. RFC 1035 defines type A, value 1, as a host address. The A RDATA is a 32-bit Internet address.
You ask with a name and receive an address. PTR asks with an address name and receives a domain name. After a PTR answer, the RFC’s gateway example issues type A queries for the names it just learned, because the PTR did not include the address and did not request extra records.
IPv6 reverse names are a different suffix. IANA lists ip6.arpa for mapping IPv6 addresses to domain names and cites RFC 3152. This guide does not invent the nibble layout, because that layout was not in the pages used for the IPv4 example.
The direction is the part to remember: ip6.arpa is address to name, like in-addr.arpa.
Cloudflare’s page puts A and AAAA together. They map a domain name to one or more IPv4 or IPv6 addresses. API content for A is an IPv4 address.
API content for AAAA is an IPv6 address. The page’s name field, written for those address records, limits each label to 63 characters or fewer and the fully qualified name to 253 characters. A PTR target is also a domain name.
When you type that hostname, those limits are the ones that page states for names on Cloudflare.
| Record | Question it answers |
|---|---|
| A | What 32-bit IPv4 address belongs to this name? |
| AAAA | What IPv6 address belongs to this name? |
| PTR | What domain name does this address point to? |
| MX | Which host accepts mail for this name? (a different job, type 15) |
A character counter is a practical check before you publish the hostname in PTRDNAME. Count the label you are about to store. The 63 and 253 figures above come from Cloudflare’s address-record name rules, not from a PTR-only sentence in RFC 1035.
What can go wrong?
The forward zone and the reverse zone can disagree. RFC 1035 says they are often different zones, so the data can be inconsistent. A new A record on the website does not create the PTR.
The PTR is published by whoever controls the reverse zone, which for public addresses is often the network operator rather than the web host’s DNS panel. Cloudflare’s preference for reverse zones matches that split.
PTR does not finish the lookup. Because there is no additional section processing, a program that needs an address after a reverse lookup must query again. The RFC shows that second step as QTYPE=A.
If you only stored the PTR and never published an address for the target name, clients that follow the RFC example have a name and nowhere to connect.
Do not borrow a TTL from a different product setting and call it the PTR default. RFC 1035 defines TTL as a field on the record. It does not print one required TTL for PTR.
Cloudflare’s page says proxied A and AAAA records default to Auto, which is 300 seconds, and that this is about proxy status. That 300 second note is not a PTR rule. Set the reverse record where the reverse zone is actually edited, and compare it with the A or AAAA name you expect mail and monitoring tools to see. ---
Frequently asked questions
Does a PTR record store an IP address?
No. RFC 1035 says the PTR RDATA is PTRDNAME, a domain name that points to some location in the domain name space. The address is the owner name, written in a reverse zone, not the value of the record. A records are the ones that store an address. RFC 1035 defines type A as a host address and says the A RDATA is a 32-bit Internet address. PTR and A answer opposite questions, so they are not substitutes.
Why are the octets reversed in IN-ADDR.ARPA?
RFC 1035 says the reversal lets a zone be delegated for one network of address space. The example puts data for 10.2.0.52 at 52.0.2.10.IN-ADDR.ARPA. Each label is one octet, a decimal from 0 to 255, without leading zeros, except that a zero octet is a single 0. A lookup for 10.0.0.6 uses the name 6.0.0.10.IN-ADDR.ARPA.
Is a PTR record the same kind of alias as a CNAME?
No. RFC 1035 says PTR records are simple data. They do not imply the special processing CNAME uses when it identifies an alias. PTR also causes no additional section processing. After you receive the name, a separate query can ask for an A record if you need the address of that name. The RFC's gateway example does exactly that: PTR answers first, then type A queries fetch addresses.
Where do IPv6 reverse names go?
IANA's .arpa page lists in-addr.arpa for mapping IPv4 addresses to domain names, citing RFC 1035, and ip6.arpa for mapping IPv6 addresses to domain names, citing RFC 3152. The forward direction is different. Cloudflare's record guide says A and AAAA records map a name to one or more IPv4 or IPv6 addresses. AAAA content is an IPv6 address. PTR, on that same page, is the reverse lookup and should preferably be added to a reverse zone.
Can the reverse name and the forward name disagree?
Yes. RFC 1035 warns that the IN-ADDR.ARPA data and the normal domain for the same host can sit in different zones, so the two sides can be inconsistent. Publishing a PTR does not rewrite the A record, and publishing an A record does not write the PTR. Mail and other checks sometimes compare the two. The RFC does not set one TTL for PTR. Do not copy a default from an address record and call it a PTR rule.
Sources
- RFC 1035: Domain names, implementation and specification · RFC Editor, 1987
- DNS record types · Cloudflare, 2026
- .ARPA Zone Management · IANA, 2026
- DNS glossary entry · MDN, 2026