By bengaltiger
Hi,
When I first created an Ubuntu 18.04 droplet I used domain name as www.example.com and successfully completed all the steps documented here https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
and I did not use www.example.com, dev.example.com and example.com any where in any of the steps. I only used IP address.
Since my requirement is to use this droplet only for subdomain, I changed domain name from www.example.com to ‘dev.example.com’.
My requirement is to setup another droplet for production to launch the site with domain name ‘www.example.com’.
Now I need to install ‘TLS/SSL certificates’ by following steps documented here https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
But I need to setup all DNS records required for subdomain ‘dev.example.com’ so that we can use this domain during development of the application.
Note: the domain name ‘example.com’ is registered with godaddy and I already pointed DO nameservers for this domain.
Could someone point right steps for adding DNS records for both main and subdomains to achieve my requirement.
thanks
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!
Hello Alex,
Thank you for answering my question. Yes I’ve done what you suggested, but my requirement is to operate dev.example.com. and www.example.com independently as replicated hosts. That means both the sites will be accessible publicly.
I’m adding here details of the droplet that is created and configured so far. Production droplet is yet to be bought.
Hope the above are correct and I would like to know what should be settings for production settings by considering the above is running in parallel. Sorry for my long question.
Best regards
Hello, @bengaltiger
If you’re using GoDaddy’s nameservers for you domain name than you can make the DNS change from their DNS control panel. Basically you need to make sure that the A record is pointed to the IP address of your droplet. The same goes for the subdomain - dev.example.com, the A record of the subdomain needs to be pointed to the IP address of your droplet/server.
Hope this helps. Let me know if you have any questions.
Regards, Alex
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.