Point a Subdomain of the main domain to a secondary droplet
I have to droplets:
and I have a domain “dataforgood.co” which is managed by digital ocean’s DNS to resolve the domain name to the main drolet dataforgood.co. its working fine.
BUT, I don’ know how to configure the DNS to point the subdomain “prep.dataforgood.co” to the droplet “prep.dataforgood.co” with IP: 18.104.22.168
I created an A record “prep.dataforgood.co -> 22.214.171.124” and a CNAME record “prep -> prep.dataforgood.co” but no results.
the server nevertheless is reachable by IP directly in the browser, so the web server is responding.
it’s a DNS issue or I am missing some configuration in my droplet (maybe BIND?) ?
Thanks a lot for your help,
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.×