Reverse DNS (rDNS) is the opposite of a normal DNS lookup: it finds the name that belongs to an IP address, using a PTR record. Mail servers check it. If the PTR record of the IP that sends your mail doesn't match your server's hostname, many providers treat the mail as spam or reject it. /go/reversedns checks this for you. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
/go/reversedns
Options
This command has no options. Arguments are only written to the log file.
Examples
# Check the reverse DNS of this server
/go/reversedns
# Check by hand: the PTR record of an IP address
host 203.0.113.10
# Check by hand: the address that a name points to
host server.example.com
Output
| Outcome | What you get |
|---|---|
| Match | One line: Reverse DNS: <name> |
| Mismatch | Three lines: Hostname: <hostname>, Reverse DNS: <name>, and Reverse DNS Mismatch. |
Example of a match:
Reverse DNS: server.example.com
Example of a mismatch:
Hostname: server.example.com
Reverse DNS: static.203-0-113-10.provider.net
Reverse DNS Mismatch.
If the IP address has no PTR record at all, the name is replaced by an odd value, 3(NXDOMAIN, which means "not found":
Hostname: server.example.com
Reverse DNS: 3(NXDOMAIN
Reverse DNS Mismatch.
[!NOTE]
The command ends with exit status0whether the names match or not. In scripts, read the output (look forReverse DNS Mismatch.) instead of relying on the exit status.
Every run is also recorded in /var/log/go/reversedns.log.
See the full reference at /go/reversedns and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
