Setting Up Reverse DNS for Your VPS
Here is a quick way to think about Reverse DNS: normal DNS is like looking up a person’s phone number in a contacts list — you know the name, and you find the number. Reverse DNS (rDNS) works the other way around — you have the phone number (your IP address), and you want to find out whose name is attached to it. When another server on the internet sees traffic coming from your IP address, it can perform a reverse lookup to check whether your IP has a legitimate hostname associated with it. If it does, your server looks trustworthy. If it does not, alarm bells start ringing — especially for email servers. This is why configuring rDNS is one of the most important things you can do after setting up a new VPS, particularly if you plan to send any email at all.Difficulty
Beginner
Time
3 Minutes
How Reverse DNS Affects Email Deliverability
This deserves its own section because it catches so many people off guard. Here is what happens behind the scenes every time your server sends an email:- Your server connects to the recipient’s mail server and says “I have a message from
you@yourdomain.com.” - The recipient’s mail server looks at your IP address and performs a reverse DNS lookup — it asks “what hostname is associated with this IP?”
- If your IP resolves to something like
mail.yourdomain.com, the mail server then does a forward lookup onmail.yourdomain.comto confirm it points back to your IP. - If both directions match (Forward-Confirmed Reverse DNS), your email passes this check. If they do not match, or if no rDNS record exists at all, your email is far more likely to land in the spam folder — or be rejected outright.
Configuring Reverse DNS
Navigate to Your Server
Log in at cloud.freakhosting.com, click Servers in the top navigation bar, then click Manage next to the server you want to configure.
Click Reverse DNS
In the IPv4 Addresses table, find the IP address you want to configure. You will see a blue Reverse DNS button in the RDNS column — click it.
Enter the Hostname
In the dialog that appears, enter the fully qualified domain name (FQDN) you want to associate with this IP address. Choose a hostname that reflects your server’s purpose:
mail.yourdomain.com— for a mail server (the most common use case)server.yourdomain.com— for a general-purpose servervps.yourdomain.com— a simple, descriptive option
Why Reverse DNS Matters
Email Deliverability
The number one reason to configure rDNS. Email servers at Gmail, Outlook, Yahoo, and virtually every corporate mail system perform reverse lookups on incoming connections. Without a valid rDNS record, your emails are far more likely to be flagged as spam or rejected entirely — even if your SPF, DKIM, and DMARC records are perfect.
Server Identification
When other systems perform a reverse lookup on your IP, a configured rDNS record shows a meaningful hostname like
server.yourdomain.com instead of a generic ISP-assigned address like 31-59-58-152.static.provider.net. This makes your server look professional and intentionally configured.Security & Trust
Many security tools, intrusion detection systems, and monitoring services use rDNS as part of their verification process. A properly configured rDNS record signals that your server is legitimate and well-maintained — not a throwaway machine being used for spam or attacks.
Service Requirements
Some third-party services, payment gateways, and APIs require a valid rDNS record before allowing your server to connect. If you have ever been mysteriously blocked from an API and cannot figure out why, a missing rDNS record is a surprisingly common culprit.
Best Practices for Reverse DNS
- Match forward and reverse — Ensure your rDNS hostname has a corresponding A record pointing back to your IP address. This bidirectional match is called Forward-Confirmed Reverse DNS (FCrDNS) and is the gold standard that email providers look for.
- Use a real domain you own — Set the rDNS to a hostname under a domain you control. Made-up or generic names will not pass verification checks and defeat the purpose of setting rDNS in the first place.
- Use a descriptive hostname — Choose something that reflects the server’s role.
mail.yourdomain.comfor a mail server,web.yourdomain.comfor a web server, orvps1.yourdomain.comif you have multiple servers. - One hostname per IP — Each IP address can have exactly one rDNS record. If your server has multiple IPs, you can (and should) set rDNS on each one individually.
- Verify after setting — After saving your rDNS record, confirm it is working by running
dig -x YOUR_IPfrom a terminal or using an online reverse DNS lookup tool. You should see your chosen hostname in the response.
Practical Scenarios
I am setting up a mail server
I am setting up a mail server
This is the most critical scenario for rDNS. Set your rDNS to the hostname your mail server identifies itself as (the value in your SMTP HELO/EHLO). Typically this is
mail.yourdomain.com. Then make sure mail.yourdomain.com has an A record pointing to your server’s IP. Also configure SPF, DKIM, and DMARC records for your domain — rDNS is just one piece of the email authentication puzzle, but it is the piece that trips people up first.I am running a web server only — do I still need rDNS?
I am running a web server only — do I still need rDNS?
Strictly speaking, web servers do not require rDNS to function. However, it is still good practice to configure it. Some security scanners flag servers without rDNS, and if your web application ever sends transactional emails (password resets, order confirmations), those emails will benefit from having rDNS properly set.
I set rDNS but my emails still go to spam
I set rDNS but my emails still go to spam
rDNS is necessary but not sufficient for good email deliverability. Make sure you also have: an SPF record listing your server’s IP as an authorized sender, DKIM signing enabled on your mail server, a DMARC policy published in your DNS, and a clean IP reputation (check your IP against common blacklists at tools like MXToolbox).
How long does Reverse DNS take to propagate?
How long does Reverse DNS take to propagate?
Changes typically take effect within a few minutes on FREAKHOSTING’s infrastructure. However, remote servers may cache the old record for a while — full DNS propagation across the internet can take up to 24-48 hours. You can verify the record using
dig -x YOUR_IP or online DNS lookup services.Can I set Reverse DNS to any hostname?
Can I set Reverse DNS to any hostname?
You can enter any hostname, but for it to work properly, that hostname must have a forward A record pointing to your IP address. Without the matching forward record, rDNS verification checks (like those performed by email servers) will fail, making the rDNS record effectively useless.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: March 2026 | VPS Support: Reverse DNS simplified.