Virtualizor

Set reverse DNS (rDNS/PTR) for your VPS IP in Virtualizor

Set a PTR record for your VPS IPv4 and IPv6 addresses in Virtualizor, match it with forward DNS and the hostname, and improve email deliverability from your VPS.

IntermediateVirtualizor VPS2 min read

Reverse DNS maps an IP address back to a host name, the opposite of normal DNS. Mail servers check it: email from an IP without a matching PTR record is often rejected or marked as spam. If your VPS sends mail – or runs a control panel such as Plesk, DirectAdmin or cPanel – set rDNS before you go live.

Before you start

  • Choose a fully qualified host name for the server, for example server1.example.com.
  • Create an A record for that host name pointing to the VPS IPv4 address (and an AAAA record for IPv6) at your DNS provider. Many providers only accept a PTR whose forward record already resolves to the same IP.
  • Wait a few minutes until the record resolves: dig +short server1.example.com.

Set rDNS in Virtualizor

  1. Log in to Virtualizor.
  2. Open the rDNS screen: depending on version it is under the VPS's Network / IPs section, or in the top menu as rDNS (or Reverse DNS).
  3. Find the IP address in the list, or click Add Record and select it.
  4. Enter the host name, for example server1.example.com (some versions require a trailing dot: server1.example.com.).
  5. Click Save or Add.

Repeat for each IPv4 address and, if you send mail over IPv6, for the IPv6 address. Changes usually take effect within minutes, but caches can delay them up to a few hours.

If the rDNS option is missing

Some providers manage reverse DNS centrally and do not enable the self-service screen. In that case, open a ticket with the IP address and the desired host name. MdmHost customers can use a support ticket.

Match the server's own hostname

For best results the PTR, the forward A record and the server's hostname should all match. Set the hostname inside the VPS:

hostnamectl set-hostname server1.example.com

You can also change it in Virtualizor; see change hostname in Virtualizor. Mail servers such as Postfix or Exim use it in their greeting (HELO), which receivers compare to the PTR.

Verify

  • From any computer: dig -x 203.0.113.10 +short should return server1.example.com.
  • Forward check: dig +short server1.example.com should return the same IP.
  • Send a test email to Gmail and check the headers for a passing result.

Troubleshooting

  • Error "forward DNS does not match": the A record does not exist yet or points elsewhere.
  • PTR shows the provider's default name: the change has not propagated, or it was saved for a different IP.
  • Mail still rejected: rDNS is only one check. Also configure SPF, DKIM and DMARC; for Plesk see SPF, DKIM and DMARC in Plesk.
  • Several domains on one IP: an IP can have only one PTR. Use the server's hostname, not a customer domain.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.