This guide explains how to set up DNS and reverse DNS (rDNS) for your VPS. Proper DNS configuration is essential for hosting websites and sending email.
DNS (Domain Name System) translates human-readable domain names into IP addresses. For example, when someone visits example.com, DNS resolves it to your VPS IP address like 66.186.37.50.
Reverse DNS does the opposite: it maps an IP address back to a domain name. For example, looking up 66.186.37.50 might return mail.example.com. This is especially important if you plan to send email from your VPS, as mail servers check rDNS to verify the sender.
DNS records are configured at your domain registrar or DNS provider (e.g., Cloudflare, Namecheap, GoDaddy). This is not done in VirtFusion.
A record (IPv4) -- Points your domain to your VPS IPv4 address:
A@ (for the root domain) or www (for a subdomain)66.186.37.50)AAAA record (IPv6) -- Points your domain to your VPS IPv6 address:
AAAA@ or www2602:2f3:XY00:XXXX::1)After creating records, allow time for DNS propagation. This usually takes a few minutes but can take up to 24-48 hours in some cases.
Test your DNS records:
# Check A record
dig +short yourdomain.com
# Check AAAA record
dig +short AAAA yourdomain.com
# Alternative using nslookup
nslookup yourdomain.com
Reverse DNS is configured in the VirtFusion control panel (not at your domain registrar).
mail.yourdomain.com)Important: The hostname you set as your rDNS must have a matching A record pointing back to the same IP address. This is called forward-confirmed reverse DNS (FCrDNS) and is required by most mail servers. For example, if you set rDNS to mail.yourdomain.com, then mail.yourdomain.com must have an A record pointing to your VPS IP.
Test your rDNS:
# Using dig
dig -x YOUR_IP_ADDRESS
# Using nslookup
nslookup YOUR_IP_ADDRESS
If you are running a mail server on your VPS, proper rDNS is essential. Most email providers (Gmail, Outlook, Yahoo, etc.) will reject or spam-flag emails from IP addresses that:
dig +short yourdomain.com to confirm the A record is live.