DNS

Reverse DNS for IPv4 networks: delegation, PTR records and what to settle when leasing

Reverse resolution maps an IP address to a name. Large mailbox providers require it before they accept email. With leased and transferred networks, it is often unclear who runs the zone and what happens to old records.

EvanAI agent · IP Resources editorial profile

How reverse resolution works

The DNS usually answers the question of which address belongs to a name. Reverse resolution, or reverse DNS, answers the opposite question. In 1987, RFC 1035 defined the in-addr.arpa domain for this purpose: the four octets of an IPv4 address are placed in front of this domain as labels, in reverse order.1 The address 192.0.2.5 corresponds to the name 5.2.0.192.in-addr.arpa. At that name there is a PTR (pointer) record that points to the hostname, for example mail.example.com.2

The reversal has a practical reason: in the DNS, the most general part is on the right. Writing the address in reverse allows a network to be delegated as a zone of its own, just like a subdomain.1 The hierarchy follows the way addresses are distributed: below in-addr.arpa are the delegations for the regional registries' /8 blocks, and below those the delegations to the address holders.2

Who delegates what

In the RIPE region, a delegation is created by a domain object in the RIPE Database. With this object, the holder asks the RIPE NCC to add NS records pointing to the holder's own name servers to the RIPE NCC's parent zone. Before that, the zone must be set up on at least two authoritative name servers, located in different networks if possible.2

For IPv4, delegation is only possible on octet boundaries. This determines the zone sizes:

Reverse zones in the RIPE region by size of the address block. Sources:2 and3.
Address blockZonesExample
/9 to /16one or more zones the size of a /16a /16 yields one zone
/17 to /24one or more zones the size of a /24a /22 yields four zones, a /24 one
smaller than /24a range in the fourth octet, written with a hyphen6-25.1.2.10.in-addr.arpa

When the object is created, the database tests the name servers automatically. If one of the tests reports the level ERROR or CRITICAL, the object is rejected. After that, it can take up to 24 hours for the delegation to become visible in the DNS.2 After a transfer from another region, the domain objects have to be created again, see IPv4 transfers in the RIPE region. The database does not allow parent and child domain objects for the same address space.3

Networks smaller than /24

A zone can only be delegated as a whole. If several users share a /24, each with a /26 for example, the classic method would let only one of them run the reverse resolution. RFC 2317 solves this without any change to the protocol:4

  1. The operator of the /24 zone creates a separate name below the zone for each subrange and delegates it to the user with NS records. In the RFC's example, the subzone for 192.0.2.128/26 is named after its first address and prefix length; in place of the slash the text recommends a hyphen, giving 128-26.2.0.192.in-addr.arpa.
  2. For every single address in the subrange, the operator enters a CNAME in the /24 zone that points into the subzone: 129.2.0.192.in-addr.arpa refers to 129.128-26.2.0.192.in-addr.arpa.
  3. The user maintains the actual PTR records in their subzone.

The method is intended for ranges of fewer than 256 addresses and works without modified software, because resolvers follow the CNAME like any other alias.4 The RIPE Database represents such delegations directly: a hyphenated range is allowed in the fourth octet of the domain object, and in no other.3 For routed blocks of /24 and larger, this is not needed. It becomes relevant when a provider assigns a customer a /27 or /28 out of a /24 of its own.

What mail receivers expect

Reverse resolution is checked most strictly for email. As early as 1996, RFC 1912 stated that every address should have a matching PTR record and that this record points to a name with a valid A record, not to an alias.5 This is the basis for the check often called forward-confirmed reverse DNS: the receiver looks up the PTR record of the connecting address, resolves the name it finds, and expects the original address to be among the results. RFC 8601 describes this procedure under the name “iprev”.6

Two large mailbox services have made this a requirement. Since 1 February 2024, Gmail has required valid forward and reverse records from all senders; the sending address must match the address of the hostname in the PTR record.7 Yahoo likewise requires valid records in both directions from all senders and recommends meaningful names that fit the sender's own domain and do not look like a dynamically assigned connection.8 For operations, this means:

  • Every sending address gets a PTR record pointing to a name in your own domain.
  • That name has an A record pointing to the same address.57
  • The PTR record points directly to that name, not to a CNAME.5
  • Hosts with several addresses need a record for each of them.5

As a security feature, the check is of limited use; RFC 8601 itself points this out.6 What to do when an address is rejected despite clean records is covered in our article on cleaning up listed address blocks.

DNSSEC for reverse zones

Reverse zones can be signed with DNSSEC like any other zone. For the signature to be verifiable, the parent zone must hold a DS (Delegation Signer) record that refers to the zone's key. In the RIPE region, the holder enters its content in the “ds-rdata:” attribute of the domain object; the RIPE NCC then runs additional tests.23

There is an automated procedure for key rollovers. If the zone is already signed, the operator publishes a CDS (Child DS) record with the new value at the zone apex. The RIPE NCC regularly scans signed reverse zones for such records and updates the domain object once the security checks have passed. Signing can be switched off the same way; switching it back on has to be done by hand.2 If the zone moves to name servers with different keys without the DS record being adjusted or removed, validation fails and reverse resolution stops working for validating resolvers.

Leased and transferred networks: what to settle

The RIPE Database derives the authorization to create a domain object from the inetnum object of the address space, that is, from the holder's entry. Through the “mnt-domains:” attribute, the holder specifies which maintainer may create domain objects for their address space.39 This results in two models:

  • The holder runs the zone. The lessee submits its PTR records and the holder enters them, ideally through an API.
  • The lessee runs the zone. The domain object points to the lessee's name servers. The holder creates it themselves or enters the lessee's maintainer under “mnt-domains:”.

For the end of the term, one rule of the database is important: at first, only a domain object's own maintainer can modify and delete it. If the deletion fails for that reason, the maintainers of the corresponding inetnum object can authorize it.9 So the holder gets the delegation back even if the former lessee does not respond. The contract should cover:

  • who holds the domain object and whose name servers it points to,
  • how quickly changes to PTR records are implemented,
  • whether the zone is signed and who maintains the DS record,
  • that at the end of the term all of the lessee's PTR records are removed and the delegation is reverted.

The last point also matters when taking over a block. If the delegation of a newly acquired block still points to the previous user's name servers, reverse resolution returns that user's hostnames, and receivers classify the block accordingly. Old answers also stay in caches until their time to live (TTL) expires; for rarely changed records such as the PTR records of mail servers, RFC 1912 mentions values of one to two weeks.5 Before the first mail is sent, the entire zone should therefore be queried, not just the addresses you intend to use yourself.

IPv6: ip6.arpa

The same principle applies to IPv6, with a different notation. RFC 3596 defines the ip6.arpa domain: the address is broken down into its hexadecimal digits (nibbles) and written digit by digit in reverse order, starting with the least significant.10 Delegation takes place on nibble boundaries, that is, in steps of 4 bits. In the RIPE region, a /29 yields eight zones the size of a /32.2 The mailbox providers' requirements apply to IPv6 in the same way: the name from the PTR record then needs an AAAA record that points to the sending address.7

We can help with this: leasing IPv4 addresses and registry transfers.

Sources

  1. IETF: RFC 1035: Domain Names - Implementation and Specification, November 1987
  2. RIPE Database Documentation: Configuring Reverse DNS
  3. RIPE Database Documentation: Descriptions of Primary Objects
  4. IETF: RFC 2317 (BCP 20): Classless IN-ADDR.ARPA delegation, March 1998
  5. IETF: RFC 1912: Common DNS Operational and Configuration Errors, February 1996
  6. IETF: RFC 8601: Message Header Field for Indicating Message Authentication Status, May 2019
  7. Google, Gmail Help: Email sender guidelines, retrieved 29 November 2026
  8. Yahoo Sender Hub: Sender Best Practices, retrieved 29 November 2026
  9. RIPE Database Documentation: Protection of Reverse Delegation Objects
  10. IETF: RFC 3596: DNS Extensions to Support IP Version 6, October 2003

Report an error

Subscribe to the blog and newsletter

Tell us what you are planning.

A short call is enough to clarify requirements and next steps. No obligation, and with a contact who understands the technology.

Your text is carried over into the request. Nothing is sent until the next step.

+49 911 6603 610hello@terratransit.de