Skip to content
BENIBIX Learn

Reverse DNS (rDNS)

Infrastructure🏠 Renting a Server (VPS)Network Settings

Also known as rDNS, PTR Record, Reverse DNS Lookup, Pointer Record

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

Think of it like

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

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.

Why it matters

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

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 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.
On the right, reverse DNS turns the server's address back into its name.

Common mistake

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

Key takeaways

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

Learn it properly