# Reverse DNS (rDNS)

> A record that turns an IP address back into a name.

**Field:** Infrastructure  
**Category:** Renting a Server (VPS)  
**Also known as:** rDNS, PTR Record, Reverse DNS Lookup, Pointer Record

## Think of it like

Think of it like caller ID. A number rings, and the phone shows whose number it is.

## Definition

Reverse DNS turns an IP address back into a name. Normal DNS goes from a name to an address, and this goes the other way. The record that holds it is called a PTR record. Only the owner of the address can set it, so on a VPS you set it in the provider's panel. Mail servers check it before they trust an email.

## Example

Jack runs a mail server on his VPS, but his emails land in spam. He sets the reverse DNS to mail.jack.example, and they start arriving.

## Example code

```console
$ dig -x 203.0.113.10 +short
mail.jack.example.
```

Ask which name belongs to the address. The answer comes from the PTR record.

## Why it matters

Without it, a server's email is often marked as spam or turned away.

## Common mistake

Trying to set it at your domain's DNS. It belongs to whoever owns the IP address, which is your hosting provider.

## Three principles

- **Address to name.** The other way from normal DNS.
- **A PTR record.** That is where it lives.
- **Set by the owner.** In the provider's panel.

## Related terms

- [Domain Name System (DNS)](https://learn.benibix.com/term/infrastructure/dns)
- [Internet Protocol Address (IP Address)](https://learn.benibix.com/term/infrastructure/ip-address)
- [Floating IP](https://learn.benibix.com/term/infrastructure/floating-ip)
- [Mail Server](https://learn.benibix.com/term/infrastructure/mail-server)

## Taught in

- [Reverse DNS for a VPS](https://learn.benibix.com/learn/infrastructure-vps/reverse-dns-for-a-vps): VPS, 7/7

![Settings that live in the provider's panel, outside the server. A cloud firewall in front of the server lets only ports 22 and 443 through. A floating IP points at server A and can be moved to server B. A reverse DNS record turns the server's IP address back into its name.](https://learn.benibix.com/diagrams/inf3-vps-network.svg)

---

Source: https://learn.benibix.com/term/infrastructure/reverse-dns
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
