Reverse DNS lookup

Type the IP address of a sending server and I'll find its hostname (the PTR record), then check that the hostname points back to the same IP. Gmail and Outlook expect both from anything that sends them email.

What is reverse DNS?

Ordinary DNS turns a name into an IP address. Reverse DNS goes the other way: a PTR record, kept by whoever owns the IP, turns the address back into a name. For email, receivers look at the IP that connected, ask for its name, and then look that name up again to see that it leads back to the same IP. That round trip is called forward-confirmed reverse DNS.

Who sets the PTR record?

Not your DNS host. The PTR record lives with the owner of the IP address, so it is set in your cloud or hosting provider's console (AWS, Google Cloud, Hetzner, DigitalOcean all have a field for it) or by asking your ISP. If you send through Google Workspace, Microsoft 365 or a sending service, they have already done this for their servers.

What should the hostname be?

Something that looks like a mail server you run, such as mail.yourdomain.com, rather than a generic name like 203-0-113-7.static.example.net. Generic names look like home connections, and many filters block those on sight.

Other tools