Connecting fly.io to Google domain

I am trying to us google domain for my fly.io app as described here:
Custom Domains and SSL Certificates · Fly Docs



Unfortunately I am not able to access site via domain address (48 hours have passed)

Using dig I can see that the IPs are properly set:

[I] ➜ dig A picatap.com

; <<>> DiG 9.10.6 <<>> A picatap.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37796
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;picatap.com.			IN	A

;; ANSWER SECTION:
picatap.com.		3586	IN	A	66.241.124.64

;; Query time: 165 msec
;; SERVER: fdaa:0:3335::3#53(fdaa:0:3335::3)
;; WHEN: Mon Jan 29 09:31:15 -03 2024
;; MSG SIZE  rcvd: 56


~ on 🐳 v20.10.11
[I] ➜ dig AAAA picatap.com

; <<>> DiG 9.10.6 <<>> AAAA picatap.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63331
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;picatap.com.			IN	AAAA

;; ANSWER SECTION:
picatap.com.		3583	IN	AAAA	2a09:8280:1::1c:a9f2

;; Query time: 158 msec
;; SERVER: fdaa:0:3335::3#53(fdaa:0:3335::3)
;; WHEN: Mon Jan 29 09:31:19 -03 2024
;; MSG SIZE  rcvd: 68

Can you try to see logs for your app to spot any issues? picatap.com seems to almost load but never finish and so does your http://picatap.fly.dev/ too so that tells me it might be app-related.

1 Like

Yep, I was pointing to a deprecated deploy and not the new one

Thanks !!!

1 Like

I know it more of a google domains question :- ) can you think of why https://picatap.com/ is working while www.picatap.com is not ?

That’s a weird one. Im not sure what’s happening. Same as before the IPs are set properly (we can see that with dig) but this time it goes really fast to ERR_CONNECTION_CLOSED so maybe your app is terminating it?

For reference if we go to a gibberish non-configured domain such as https://lubien-would-not-buy-this.com we get ERR_NAME_NOT_RESOLVED, so that tells me either your app or Fly.io are terminating the connection? As far as I know we would not terminate the connection like this :thinking: we even have https://www.fly.io/ hosted on ourselves and that’s just an app with a certificate.

When trying to access from www.picatap.com I don’t see any logs so I assume my app is not closing the connection, should i include a specific handling for www in my certificate ?

Issue resolved by creating additional certificate for “www.picatap.com
Thanks :hugs:

1 Like

Ah, glad its working now!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.