Learn how to configure reverse DNS (rDNS) on Vultr instances using the Customer Portal or Vultr CLI.
Reverse DNS (rDNS) maps an IP address to a hostname using a PTR record, performing the opposite of a standard DNS lookup. Configuring rDNS allows services and monitoring tools to resolve your server's IP back to a fully qualified domain name (FQDN). Proper rDNS improves email deliverability, aids in network verification, and helps troubleshoot connectivity issues. Many services, including mail servers, rely on rDNS to verify legitimate sources, and monitoring tools use it to display human-readable hostnames.
Follow this guide to configure rDNS for Vultr instances using the Vultr Customer Portal or Vultr CLI.
Navigate to the Compute section under Products.
Select the instance for which you want to configure rDNS.
Click Settings, then choose IPv4 or IPv6 for which you want to set the rDNS.
Under Public Network, all your associated public IPs are listed. To update one, click the rDNS name under the Reverse DNS column.
Enter the FQDN you want to associate with your IP address.
Click the tick icon to save the rDNS record.
Run the below command to verify that the rDNS record is updated.
$ dig -x <instance-ip>
The command above displays the PTR record associated with your IP.
Check the version of the Vultr CLI to ensure it is installed.
$ vultr-cli version
Output:
Vultr-CLI v3.7.0
List all available instances.
$ vultr-cli instance list
Note the id
of the instance for which you want to update rDNS.
List all the IPv4 or IPv6 addresses associated with your instance.
For IPv4 rDNS:
List all associated IPv4 addresses for the instance.
$ vultr-cli instance ipv4 list <instance-id>
Note the IP address you want to configure rDNS for.
Update the rDNS for the selected IPv4 address.
$ vultr-cli instance reverse-dns set-ipv4 <instance-id> <ipv4-address> --entry "<FQDN-rDNS>"
Output:
Reverse DNS IPv4 has been set
For IPv6 rDNS:
List all associated IPv6 addresses for the instance.
$ vultr-cli instance ipv6 list <instance-id>
Update the rDNS for the selected IPv6 address.
$ vultr-cli instance reverse-dns set-ipv6 <instance-id> <ipv6-address> --entry "<FQDN-rDNS>"
Output:
Reverse DNS IPv6 has been set
Verify that the rDNS records have been updated.
$ dig -x <instance-ip>
No comments yet.