Setup Reverse DNS PTR Record with Google Cloud DNS

7,008 views
Skip to first unread message

Sebastian Loncar

unread,
Aug 23, 2017, 11:37:45 AM8/23/17
to cloud-dns-discuss
I need to setup a reverse DNS PTR record.

Let's have an example (example.com and 1.2.3.4 are only placeholders):

mx.example.com. A 1.2.3.4
4.3.2.1.in-addr.arpa PTR mx.example.com.

"nslookup 1.2.3.4" should return:

4.3.2.1.in-addr.arpa name = mx.example.com."

With my current Hosting-provider, i can set the Reverse hostnames for every IP-Adress, that are assigned to me (in the webinterface). But i see no way todo this in google cloud DNS.

I have created two zones:

example.com. + in-addr.arpa.

A record, with DNS-Name "mx". Works as expected.

in-addr.arpa.:
PTR record with name "4.3.2.1", pointing to "mx.example.com."

But this does absolutly not work. It points always to 4.3.2.1.bc.googleusercontent.com.

Of course, i understand why it does not work. The "owner" of the IP (google) has to modify some settings in their own reverse-zone.

So, what can i do now, to reach my goal? (The goal is, that 4.3.2.1 is pointing back to mx.example.com. and NOT to 4.3.2.1.bc.googleusercontent.com.)

Otherwise, it's nearly unpossible to send mails via google cloud (without using gmail). Every "simple" hosting provider allows the user to set the Reverse-Entries!

Rick Tait

unread,
Aug 23, 2017, 4:50:02 PM8/23/17
to Sebastian Loncar, cloud-dns-discuss

--
You received this message because you are subscribed to the Google Groups "cloud-dns-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-dns-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Principal Systems Engineer, Hypermedia Systems
rick...@hypermediasystems.com | 213-915-UNIX

Sebastian Loncar

unread,
Aug 23, 2017, 5:41:05 PM8/23/17
to cloud-dns-discuss, sebastia...@gmail.com, rick...@hypermediasystems.com
Hello Rick,
i researched a log time ago, the message on serverfault.com is new (this August) - but after my posting, i found that, too.

I followed the instructions exactly. But it's not successfull (yet). Here are two examples:

- vpn.tamani.de

for both domains, i created a seprate reverse zone exactly as in the message described. More than 6 hours are gone now, and no update. Maybe, it's updated next day, i will check this.

(there's hope: nslookup, server=the specific google cloud dns server ( ns-cloud-e1.googledomains.com / ns-cloud-d1.googledomains.com ), query the special in-arpa-addr record returns the correct result)


Am Mittwoch, 23. August 2017 22:50:02 UTC+2 schrieb Rick Tait:
On Wed, Aug 23, 2017 at 8:37 AM, Sebastian Loncar <sebastia...@gmail.com> wrote:
I need to setup a reverse DNS PTR record.

Let's have an example (example.com and 1.2.3.4 are only placeholders):

mx.example.com. A 1.2.3.4
4.3.2.1.in-addr.arpa PTR mx.example.com.

"nslookup 1.2.3.4" should return:

4.3.2.1.in-addr.arpa name = mx.example.com."

With my current Hosting-provider, i can set the Reverse hostnames for every IP-Adress, that are assigned to me (in the webinterface). But i see no way todo this in google cloud DNS.

I have created two zones:

example.com. + in-addr.arpa.

A record, with DNS-Name "mx". Works as expected.

in-addr.arpa.:
PTR record with name "4.3.2.1", pointing to "mx.example.com."

But this does absolutly not work. It points always to 4.3.2.1.bc.googleusercontent.com.

Of course, i understand why it does not work. The "owner" of the IP (google) has to modify some settings in their own reverse-zone.

So, what can i do now, to reach my goal? (The goal is, that 4.3.2.1 is pointing back to mx.example.com. and NOT to 4.3.2.1.bc.googleusercontent.com.)

Otherwise, it's nearly unpossible to send mails via google cloud (without using gmail). Every "simple" hosting provider allows the user to set the Reverse-Entries!

--
You received this message because you are subscribed to the Google Groups "cloud-dns-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-dns-disc...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

djlo...@gmail.com

unread,
Oct 13, 2017, 10:05:19 AM10/13/17
to cloud-dns-discuss
Hi,

Did you ever get this working?

I tried to setup reverse DNS to my GCP VM instance static IP.
I also followed the instructions exactly, but so far this has not been effective... (even though i did it yesterday), the reverse dns is still returning a *.bc.googleusercontent.com name, rather than the domain name I added in the new zone...

Thanks,
Lewis.
Reply all
Reply to author
Forward
0 new messages