Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Reverse DNS

Back up to the Configuring Category
Back up to the Domains Category
From AAISP Support Site


Which option do I want?

You have... Use
Nothing set up, and just want every IP to have a valid reverse Auto reverse, which needs no setup
A domain hosted with us A+Reverse / AAAA+Reverse records
A domain hosted elsewhere Ask us to add the domain, then add reverse records
A /24 or larger, and want to manage the PTRs on our system An in-addr.arpa / ip6.arpa zone
Your own nameservers Delegation by NS or CNAME

About reverse DNS (rDNS)

Normal (forward) DNS looks up information about a domain or host name. For example, to find the IP address for my.firebrick.co.uk, a normal DNS lookup asks for the A record called my.firebrick.co.uk and gets the answer 217.169.0.1.

Reverse DNS finds a name for an IP address. The IP address is converted to a name and the lookup is done in the usual way, but the record type is PTR instead of A.

DNS delegates control at each level. The name servers for co.uk point to the name servers for firebrick.co.uk, and so on. Usually there are only a couple of levels, but at any level, control of everything below it can be handed to a new name server.

With IP addresses, control is delegated the other way round: 217.x.x.x is delegated to RIPE, and 217.169.0.x is delegated to AAISP. So that DNS can be used here, the reverse DNS name is written backwards. 217.169.0.1 becomes 1.0.169.217.in-addr.arpa, which means:

  • 217.in-addr.arpa is delegated to RIPE
  • 0.169.217.in-addr.arpa is delegated to AAISP

To hand your addresses to you, we have to delegate part of a block of 256 addresses that RIPE gave us. If you have a whole block of 256, the delegation from RIPE can simply point at your own name servers. Most customers have fewer than 256 addresses, though, and DNS has no built-in way to delegate part of a block. The methods below work around that.

Option A: Let AAISP manage your reverse DNS

Auto reverse (the default)

Auto reverse is on unless you choose something else. We fill in a PTR record for each IPv4 address, plus a matching forward A record, so all your IP addresses have a valid reverse entry without you doing anything.

It's mainly for customers who don't want to set up reverse entries themselves but need something in place to avoid problems with some servers. If you also use A+Reverse records in a domain, those IPs will have two PTR records, and both are valid.

For example, if you have the IPs 192.0.2.1 and 2001:DB8::1, these reverses are created:

1.2.0.192.in-addr.arpa
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa

A+Reverse / AAAA+Reverse records

Use this if we host DNS for your domain and you want an IP of ours to point to and from a name in it. It's usually the simplest option if you have a domain with us.

In your domain's DNS entries, create an A+Reverse or AAAA+Reverse record instead of a plain A or AAAA record. We then add the matching reverse entry to our DNS automatically, mapping the IP address back to the name.

Adding an A+Reverse record to a domain hosted with us

Reverse records for a domain hosted elsewhere

If your domain is hosted somewhere else, we can still publish reverse (PTR) records for your AAISP addresses that point at names in that domain.

You have to ask us first. Contact support and ask them to add your domain (or a subdomain of it) to our control system. It's free, but until we've added it, the settings described here won't appear in your control pages. You only need to ask once per domain, and you can ask for several.

You then add one record per address. We append your domain name to each one and publish the result as a PTR record.

Example: you have the IP address 198.51.100.10 and want it to reverse to fred-workstation.your-domain.example.com.

  1. Ask support to add your-domain.example.com to our control system (once only).
  2. In the control pages, go to Domains and select your-domain.example.com.
  3. In the first box, enter the name part, e.g. fred-workstation. This can include dots for subdomains.
  4. In the box below, enter the IP address, e.g. 198.51.100.10.
  5. Choose ipv4 reverse (or ipv6 reverse for an IPv6 address) from the menu.
  6. Click OK or Apply. The new record appears in the list below.

To change a record, click it in the list so it's highlighted, edit the details and click Apply. To delete it, highlight it and click Erase.

in-addr.arpa or ip6.arpa zone

If you have a /24 or larger block (few customers do), we can create an in-addr.arpa zone on your account, and you can add PTR records inside it. We can do the same for IPv6 by setting up a x.x.x.x.0.b.8.0.1.0.0.2.ip6.arpa zone for you. Contact support to set this up.

PTR records in an in-addr.arpa zone

Option B: Delegating reverse DNS to your own nameservers

Requirements: you need a DNS server where you can define PTR records. Some hosted DNS services only offer a simple web control panel, which may not be able to do this.

There are two ways to delegate, and you choose which one in the control pages. Either way, you tell us which name servers will answer reverse DNS queries for your addresses.

  • The setting is in the control pages, under the link to your login.
  • Enter one to six name servers by name, not IP address, and without a dot on the end.
  • It applies to both IPv4 and IPv6.
  • Changes can take up to 24 hours to take effect.
Delegating reverse DNS to your own nameservers. Enter your DNS hostnames in the boxes, not IP addresses.

Your WAN address: every line also has a single IP address on the external (WAN) side of the router, which may be in a completely different range from your other addresses. It, and any other single addresses, are always delegated to your name servers as a zone of their own, whichever method you choose.

Delegation by NS

We put your name servers in our DNS against each of your addresses. For example, if you have 217.169.0.0 to 217.169.0.3, we add NS records for each of:

0.0.169.217.in-addr.arpa
1.0.169.217.in-addr.arpa
2.0.169.217.in-addr.arpa
3.0.169.217.in-addr.arpa

You then create four separate zone files, each with the usual SOA records and a single PTR record for that address.

This is the logically correct way to do it, because the reverse zone is delegated at every level right down to the individual address. It gets tedious with lots of addresses (say 128 zone files), though. A shortcut is to add the parent as one zone on your name server (e.g. 0.169.217.in-addr.arpa) and just add PTRs for the IPs you have.

Delegation by CNAME

This lets you look after a whole block of addresses in a single zone file. We add a CNAME for each address that points to a name in a new zone, then delegate that new zone to your name servers. The zone is named first-last.restofzone.in-addr.arpa.

For example, if you have 217.169.0.0 to 217.169.0.3:

  • we delegate the zone 0-3.0.169.217.in-addr.arpa to your name server(s)
  • and add a CNAME for each address, for example:
1.0.169.217.in-addr.arpa  CNAME  1.0-3.0.169.217.in-addr.arpa

Notes

IPv6

IPv6 reverse DNS is delegated by NS, at /48 or smaller.

Blocks of /24 or larger

If you have 256 addresses or more, delegation is done at the /24 level, and choosing CNAME or NS makes no difference. You're responsible for an entire reverse zone, with no special CNAME entries needed.

secondary-dns.co.uk

Don't use secondary-dns.co.uk in your list of reverse DNS name servers for now (advice as of June 2026). See Secondary_DNS#Using_secondary-dns.co.uk_for_Reverse_DNS.