Reverse DNS on a VPS maps your server's IP address back to a hostname, such as mail.example.com. Many services use reverse DNS, also known as a PTR record, to verify a server's identity. It is especially important for mail servers, since most receiving mail systems reject or penalise email from IP addresses without matching reverse DNS. Setting it correctly improves trust and connectivity for your server.
How reverse DNS works
Normal DNS turns a hostname into an IP address. Reverse DNS does the opposite, using PTR records in a special zone controlled by whoever owns the IP address block, which is usually the hosting provider. That is why you set reverse DNS through your provider's client area or support, rather than in your domain's DNS zone.
- PTR record maps IP address to hostname
- Forward record maps the hostname back to the same IP
- Both should match for full verification
- Set separately for IPv4 and IPv6 addresses
Why it matters for email
Mail servers check that the connecting IP has a PTR record and that the hostname resolves back to the same IP, called forward-confirmed reverse DNS. Missing or generic reverse DNS is a strong spam signal. For a mail server on a VPS, set the PTR record to the server's mail hostname, make sure the A record matches and configure the mail software to announce the same hostname in its HELO greeting.
Other uses
Reverse DNS also helps with logging and troubleshooting, since tools show hostnames instead of bare IP addresses. Some APIs, partners and security systems check reverse DNS before allowing connections. A clear hostname makes your server look professional and identifiable to network operators.
Setting it up
Choose a hostname on a domain you control, create an A record pointing to the VPS IP, then request or set the PTR record for that IP to the same hostname. Verify with dig -x or nslookup. Allow time for DNS caches to update.
Complete email authentication
Combine reverse DNS with SPF, DKIM and DMARC for the best deliverability.
Choosing a plan
Confirm that reverse DNS can be configured for your IP addresses. The VPS plans below support custom reverse DNS for mail and other services.