How to setup CNAME to redirect static app platform

Posted October 22, 2020 2.8k views
NetworkingDNSQuickstartDigitalOcean App Platform


I have a Google Domain and it is already being redirected to Digital Ocean servers (ns1, ns2 and ns3).
My static portfolio was running in apache in a CentOS droplet, let’s use the domain

I followed then this tutorial ( and my website was successfully deployed, but now I want to redirect to the link generated by the app platform.

Example: User accesses and remains in this url but the content from is loaded.

For this I followed another tutorial:

As far as I could understand I had to configure it in Google Domains, however as said initially the Google Domains is pointing to Digital Ocean servers, and I created the following record:

Type Hostname Value TTL (seconds)
CNAME is an alias of 43200

I waited some time but my website at is still “Connection refused”.

Did I understand something wrong in the DNS configuration process?

Thanks in advance!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hello there,

If your domain nameserver record is pointing to DigitalOcean nameserver then you have to update the CNAME record in DigitalOcean cloud panel. you can follow below documentation link to add the CNAME record:

It will take 1-12 hours to propagate the changes then the subdomain should be resolving to the given hostname ( example:


  • Dikshith
  • This method did not work for me. My app successfully displays using the A record URL using https. However when I try going to the CNAME URL I get a cert validation error:
    My CNAME record simply mapped www to @
    Perhaps I need to spell out the long name rather than use the shortcut?

    • @duffar you solve your problem?

      • Sadly no… I spent a couple days on it and finally gave up and moved my app to netlify - where it worked on the first try.

        • today we resolve the problem.

          1.- Delete App platform custom domain configuration (

          2.- Add CAA DNS record of your app:

 IN CAA 0 issue ""

          3.- Add custom domain config to your app

          4.- Add CNAME to the networks DNS panel

          and ready

Hi @dikshith thanks for the answer. It really took longer than normal and I thought something was not correct, but it was.

Thank you very much, it is working already.