• 10

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

How do I change reverse DNS on Google Cloud Compute?

I want to add reverse DNS to Google Cloud Compute and can't figure out howto do it.

I want to map to

I am having trouble verifying DKIM etc for sending emails.

Theres hope!

Paul Nash (Product Manager, GCE, Google) responded · Nov 2, 2016 We recognize that reverse DNS and PTR records in particular are important for certain applications like mail servers, and this feature request is being planned for a future release. We will update the state to started when the functionality is closer to being available.



PTR records can now be created under new functionality that is in alpha testing. If you would like to participate in early testing, please complete the form here:

original url = https:// goo DOT gl SLASH efG1sK

We may not be able to invite all requestors into the alpha, depending on customer demand, but all users will be able to use the feature when it reaches “beta” status.

Paul Nash (Product Manager, GCE, Google) // Source: Google Forums

  • 5
Reply Report

Following up on this topic, as of now, ie August 2017, Google Cloud gives access to this feature as a ßeta version. The procedure to make it work, as I did is: (I am using this fake ip of 123.456.789.12 as an example here)

  1. Go to Google Cloud DNS
  2. Click on 'Create Zone'
  3. Type a new zone name like reverse-on-123-456-789-12 (but you can put whatever you want)
  4. Type a DNS name that must be exactly:
  5. In the Description field, put whatever you want.
  6. Click 'Create'.
  7. On the new page showing the newly created zone, click on 'Add Record'
  8. In the DNS Name, do not add anything, ie leave it as ''
  9. Select Resource Record PTR
  10. In the Canonical name, enter your hostname for which you want the reverse mapping such as
  11. Click create and you are done.

You can check the reverse with host lookup querying the dns server (or whatever else is the Google name server for that particular zone) until the propagation is fully completed. and you will get: domain name pointer Yeah!

Addendum: For those who are more inclined to use the CLI, let me add the working equivalent in command line:

  1. gcloud dns managed-zones create "reverse-on-123-456-789-12" --description="Reverse mapping for 123.456.789.12" --dns-name=""
  2. gcloud dns record-sets transaction start -z="reverse-on-123-456-789-12"
  3. gcloud dns record-sets transaction add -z="reverse-on-123-456-789-12" --name="" --type=PTR --ttl=300 ""
  4. gcloud dns record-sets transaction describe -z="reverse-on-123-456-789-12"
  5. gcloud dns record-sets transaction execute -z="reverse-on-123-456-789-12"

The step 4 is just to check the content of the yaml file, so it can be skipped.

To find out what are the name servers allocated by Google for this newly created zone, do: gcloud dns managed-zones describe reverse-on-123-456-789-12

  • 4
Reply Report
      • 1
    • First of all, thanks for the steps. I have done and already got reversed when dig -x with I've wait for a day but dig with @ still resolve to Is there any extra steps I need to perform?

Google just launched PTR record for Compute Engine.

When you can edit the VM, in the Network interfaces, there is Public DNS PTR Record for configuration.

Public PTR Record

Set it as your domain name and it will let you verify the domain.

After the verification, run command dig -x YOU_VM_IP_ADDRESS and it should be resolved to your domain now or soon. :)

Here is the manual:

  • 4
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags