Can't access my subdomain which redirects do DigitalOcean droplet

I am using Google Domains for domain name. I host client on Vercel which works perfectly fine. But I have a problem with accessing my droplet on subdomain.

My google domain settings are like this:

@ A 3600 Vercel IP www CNAME 3600 API A 3600 My Droplet ID

When I try to access the droplet with raw ip it works fine but I cannot access it through subdomain. What am I doing wrong?

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
February 28, 2022

HI @TinyLapisAxolotl,

It seems to me like the DNS is not properly configured. Let’s say you have a and you want to point to your droplet. What you can do is create an A record for to point to your Droplet :

Name            Type    Destination   A    XXX.XXX.XXX.XXX

where XXX.XXX.XXX.XXX is your Droplet’s IP address.

As for the www version, now you can use a cNAMe record like so

Name                 Type      Destination   CNAME

That way your will point to where your is pointing.