Setting up multiple reverse DNS entries is super simple in linux but I cannot find documentation on doing it in google cloud. I see how to add one, but not how to add several. The server hosts multiple domains and I need rDNS validation of all of them.


Technically you can setup Reverse DNS for multiple DNS entries to the same IP address. However, this is not recommended.

Google Cloud DNS will not help you with Reverse DNS. The IP addresses are owned by Google and Google needs to configure the settings for you in their system. At this time, you can only configure one PTR record per static public IP address.

Note: Only certain types of static public IP addresses are support. For example, an IP address attached to Compute Engine is supported. An IP address attached to a Google Load Balancer is not supported.

| improve this answer | |

If I'm understanding what you want, you need to do something like this:

$gcloud compute instances update-access-config [INSTANCE_NAME]
--public-ptr --public-ptr-domain [DOMAIN_NAME]

Take a look at this documentation.

NOTE: I'm editing my answer as I cannot comment on other user's answers.

The answer by John Hanley made me think about this scenario and do some consults and research.

My conclusions are:
- Using internal DNS you can only have one PTR record per IP address.
- You can create a PTR record in a Cloud DNS managed private zone that would override the Compute Engine internal DNS PTR record.
- GCE internal DNS creates these reverse zones
- You can override GCE internal DNS reverse zones and PTRs with Cloud DNS managed private zones.
- Technically, there's no limit on the number of entries a single PTR record can have.
- GCP does not allow you to create a public DNS zone for in-addr.arpa. So this might be of limited use.

| improve this answer | |
  • This will only allow the use of one FQDN. I need multiple. – user206106 Jul 23 '19 at 14:40
  • There is a similar post here. My opinion is that for achieve your goal you need to use Cloud DNS. Create a zone for each domain and configure them as you need – Alex6Zam Jul 23 '19 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.