Networking

What is Reverse DNS?

Also known as: PTR record, rDNS
Definition

Reverse DNS maps an IP address back to a hostname through a PTR record, the inverse of a normal DNS lookup. It is effectively mandatory for outbound mail: most large receivers reject messages from addresses whose PTR does not resolve back to the sending hostname.

Why Reverse DNS matters

It is effectively mandatory for outbound mail: most large receivers reject messages from addresses whose PTR does not resolve back to the sending hostname.

Reverse DNS in practice

When you're running a mail server, reverse DNS is the PTR record on your IP address. You set it in the panel, point it at a hostname that resolves back to the same IP. Receivers check it on every inbound message. Get it wrong or leave it missing and your mail lands in spam or gets rejected outright. For anything else, it barely matters, but for mail it's the difference between delivery and silence. You'll also see it when troubleshooting: a missing PTR often explains why a connection is refused.

What people get wrong about Reverse DNS

The common mistake is thinking reverse DNS is just a hostname lookup in the other direction. It isn't. Forward DNS is authoritative for names; reverse DNS is authoritative for IPs, and they're separate zones. A mismatch — where the PTR points to a hostname that doesn't resolve back — is worse than no PTR at all. Set them to match exactly.

Reverse DNS — common questions

What happens if I don't set a PTR record?

If you run a mail server, most large receivers reject messages from addresses without a valid reverse DNS match. Your mail gets bounced or spam-filtered. For web or VPN traffic, it rarely matters. But if you plan to send mail from that IP, set the PTR before you start.

How do I set a reverse DNS record?

In your OnionVPS panel, find the IP address for your server, enter the hostname you want the PTR to resolve to, and save. It propagates within minutes. Ensure that hostname has a forward A record pointing back to the same IP, or the PTR won't be considered valid by strict receivers.

More from networking

ASN
An ASN identifies a network that controls its own routing policy and announces its address space to the global routing table via BGP.
BGP
BGP is the protocol that autonomous systems use to exchange routing information and decide how traffic crosses the internet.
IXP
An IXP is a shared physical facility where networks interconnect directly rather than paying a transit provider to carry traffic between them.
Peering
Peering is a direct interconnection between two networks that exchange traffic with each other without paying a third party to carry it.
IP transit
Transit is a paid service in which one network carries another network's traffic to the rest of the internet.
Anycast
Anycast announces the same IP address from several locations at once, so each user is routed to the nearest instance by BGP.
IPv6
IPv6 is the current version of the Internet Protocol, using 128-bit addresses to replace the exhausted 32-bit IPv4 space.
Port 25
Port 25 is the TCP port used for server-to-server SMTP mail delivery.