By datracka
Hi there,
I have to droplets:
dataforgood.co (95.85.51.69) prep.dataforgood.co (146.185.189.143)
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: 146.185.189.143
I created an A record “prep.dataforgood.co -> 146.185.189.143” 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, Vicens.
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!
All you need in this case is the A record pointing from prep to the IP address:
prep IN A 146.185.189.143
Check out this article for more info:
How To Set Up and Test DNS Subdomains with DigitalOcean’s DNS Panel
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.