Manually configure reverse DNS in Linux VPS

rDNS is configured on a zone file. This zone file teaches our name servers to resolve a host from an IP address. The file will be called, where is our server IP address. Also, save this zone file in path /var/named.

One of the foremost importances of reverse DNS or rDNS is spam filtering. A server that sends emails needs to have rDNS configured for it’s emails to be received by almost all other servers. If not, the emails will be treated as Spam and hence blocked or dumped to Spam.

The content of the file is as follows:

; BIND reverse data file for
$TTL    604800      IN      SOA (
                          1         ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 day
;       IN      NS       IN      NS   IN      PTR

NOTE: Make sure to replace with your server IP and, with your domain name.

Was this article helpful?

Related Articles

Leave A Comment?