On Google Cloud, reverse DNS is set on a VM’s primary network interface — Public DNS PTR record — once you prove the domain is yours, through Search Console or an A record. Until then the address carries a googleusercontent.com name.
| Provider | Google Cloud Compute Engine — Cloud provider |
| Where | The VM’s network interface → Public DNS PTR record |
| Before you set it | Domain proof — Search Console or the A record |
| IPv6 | Yes, on the primary interface of a dual-stack subnet |
| Outbound port 25 | Blocked until you ask |
| Default name | 25.113.0.203.bc.googleusercontent.com |
Is reverse DNS right for your Google Cloud Compute Engine server?
Enter the IP address the server sends mail from, or its host name: we look up its PTR record, check that the name leads back to the address, and say whether it is still the default.
Setting reverse DNS at Google Cloud Compute Engine
- Prove you own the domain: verify it in Search Console with the same Google account, or add an A record for the name pointing to the VM’s external IP.
- Edit the VM: Networking, the primary interface, Public DNS PTR record — tick IPv4 or IPv6 and enter the name.
With gcloud (for IPv6: –ipv6-public-ptr-domain):
gcloud compute instances update-access-config my-vm --public-ptr --public-ptr-domain mail.example.com
Before you set it
- The domain verified in Search Console, or an A record pointing at the external IP.
- The VM’s primary network interface — not a load balancer or Cloud NAT address.
Sending mail on port 25
Google Cloud blocks outbound port 25 to external addresses by default, and lifts it for a project it judges low-risk; a banner on the VPC networks page says whether yours is allowed. Ports 465 and 587 are not blocked.
Worth knowing
The default name spells the address backwards.
A live migration can occasionally reset the PTR to the default: set it again.
Sources
Checked on 27 September 2026 against these official sources:
- Create a PTR record for a VM instance — cloud.google.com
- VPC firewall rules — cloud.google.com
- Sending email from an instance — cloud.google.com