Resolution of CNAME taking long time when using a CDN but website is working


When deploying - I have a custom domain proxied through Cloudflare. CNAME are correctly added on Cloudflare and everything works well.

However, when deploying, the step “Resolution of CNAME” takes veeeeery very long (too many retries), and it fails in the end. I am a bit confused about this resolution step - since the console fails but the website works.

Can anyone help ?

Thank you!

Hi @CBaptiste ,

Indeed, it’s a known “issue” and we’ll provide a solution to make it faster to deploy when using a Cloudflare CDN.


Qovery makes sure that your application is really live and custom domain resolution works before marking the app RUNNING. The reason why it takes so long is that Qovery has no clue to know that your domain is behind a proxy and when trying to resolve the domain it will get a DNS response that does not reflect the expected CNAME

dig @ CNAME

; <<>> DiG 9.10.6 <<>> @ CNAME
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57706
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 512
;             IN      CNAME

;; AUTHORITY SECTION:          1800    IN      SOA 2279244344 10000 2400 604800 3600

;; Query time: 48 msec
;; WHEN: Sun May 29 12:37:19 CEST 2022
;; MSG SIZE  rcvd: 106

So Qovery is waiting until exceeding all the retries.

We have made that to prevent TLS and domain cache issues that happened if you open too fast your custom domain in your browser.

I put our PMs in cc - @a_carrano @Florian_Lepont @Pierre_Mavro

This is super clear - thank you for the explanation!

1 Like