How do I set reverse DNS (PTR) for my dedicated server's IP addresses?

Reverse DNS (a PTR record) is how the rest of the internet looks up a name for your IP address. Mail servers check it, so it's worth getting right. It takes about two minutes and you can do it yourself, no ticket required if the portal shows you the option.

What is reverse DNS?

Normal DNS turns a name into an IP address: mail.example.com becomes YOUR.IP.ADDRESS. Reverse DNS does the opposite. It looks up an IP address and returns a name. The record that holds that answer is called a PTR record (pointer record), and it belongs to whoever owns the IP, which is why you set it here in the portal and not at your domain registrar.

Mail servers check it. When your server sends email, the receiving server looks up your IP and wants a real hostname that points back to the same IP. If there isn't one, or it doesn't match, your mail is far more likely to be rejected or filed under spam. It also makes logs and traceroutes readable.

What should I set it to?

  • Sending email from this IP? Use your mail server's hostname, the same name your mail server announces when it connects (its HELO/EHLO name). For example mail.example.com.
  • Not sending email? Use your server's hostname, such as server1.example.com. Anything that is a real name you control is fine.
  • Either way: the hostname must have an A record pointing at this exact IP. Reverse and forward need to agree, or the PTR doesn't do you any good.
  • One hostname per IP. If you have several IPs, each one gets its own PTR.

Before you start

Pick the hostname: your mail server's name (for example mail.example.com) if you send email from this IP, otherwise your server's hostname. Create an A record for it pointing at the IP first. A PTR that doesn't match its A record is how good email ends up in spam.

Steps

  1. Log in to the portal at https://noc.versaweb.com.
  2. In the left-hand menu, click Services, then Bare Metal Servers, and click your server.
  3. Above the server details, click More (the three-dot menu), then Reverse DNS.
  4. You'll see your IP addresses with a Hostname box next to each. Type the hostname you want in the box for the right IP. The portal shows names with a trailing dot (like mail.example.com.). That's normal.
  5. Click Update Reverse DNS.
  6. Check the result from your own computer with dig -x YOUR.MAIN.IP +short.

Changes can take up to 24 hours to spread across the internet.

How long does it take, and what else should I know?

  • The new name is usually visible quickly, but DNS caches can hold the old answer for a few hours. Test from a different network or wait before assuming it failed.
  • Receiving mail servers often do a forward-confirmed check: they look up your IP, get the PTR name, then look that name up and expect your IP back. That's why the A record has to match.
  • If you later change or delete the A record for that hostname, update the reverse DNS at the same time or the two will stop agreeing.
  • If the table lists more than one IP address, including IPv6 addresses, each one has its own Hostname box and gets its own name.

If it didn't work

  • Can't find Reverse DNS? Click More on your server's page; it's in that menu. Still not there? Open a ticket (below) and we'll set it for you.
  • Confirm the A record for your hostname points at the same IP.
  • Wait a few hours before testing again; the old answer may be cached.
  • Still wrong? Open a ticket in the portal, set Department to Technical Support, and include your Main IP, the IP you want changed, and the hostname you want. We'll update it for you.

Related articles


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 0