Score:1

GCP: no redirect of domain to ip

ma flag

I'm using google cloud platform, have a vm instance with external ip 34.141.104.0 and a domain charec.net, which should be redirecting to that ip.

I have created a cloud DNS Zone (public, DNSSEC off) and have four records in it:

charec.net.       A              34.141.104.0
charec.net.       SOA            ns-cloud-a1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 259200 300
charec.net.       NS             ns-cloud-a1.googledomains.com.
                                 ns-cloud-a2.googledomains.com.
                                 ns-cloud-a3.googledomains.com.
                                 ns-cloud-a4.googledomains.com.
www.charec.net.   CNAME          charec.net.

But nonetheless, dig charec.net has no answer section, it just returns:

; <<>> DiG 9.16.15-Debian <<>> charec.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52209
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;charec.net.            IN  A

;; AUTHORITY SECTION:
charec.net.     300 IN  SOA ns-cloud-b1.googledomains.com. cloud-dns-hostmaster.google.com. 2 21600 3600 259200 300

;; Query time: 67 msec
;; SERVER: 192.168.188.1#53(192.168.188.1)
;; WHEN: Di Nov 09 10:19:03 CET 2021
;; MSG SIZE  rcvd: 132

What do I do wrong? What can I do, to get more information, why is it not redirecting to the ip? I created that record two days ago, so the 24 h have already past.

John Hanley avatar
cn flag
You are querying the local resolver. When debugging query the authoritative name server. In your question show the command as well. Is this a new domain? Verify that the authoritative name servers point to your DNS server. Edit your question with more details.
Score:1
ma flag

I have solved my issue after contacting gcp support - GCP has two options for redirecting Domain to an ip. You can create an DNS Zone, or you can just put an A Record in google domains in the DNS Settings - but only the Domain DNS Setting OR the DNS Zone applies.

In GCP Domain -> Network services -> cloud domains click on your domain and "edit DNS Details".

There you can configure either the zone, that is applied for your domain, or the google domain settings.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.