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 cname.vercel-dns.com. 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?
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!
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.
HI @TinyLapisAxolotl,
It seems to me like the DNS is not properly configured. Let’s say you have a domain.com and you want to point sub.domain.com to your droplet. What you can do is create an A record for sub.domain.com to point to your Droplet :
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
That way your www.sub.domain.com will point to where your sub.domain.com is pointing.