Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Subdomain / DNS records setup on a single Ubuntu 18.04 droplet running with Django, Postgres, Nginx, Gunicorn
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
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
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.
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.×