can we set main domain to another droplet the subdomain to loadbalancer?

i have main domain which is i want just point to single droplet (it will be like simple site) then put the subdomain to load balancer…is it possible? because when i create let’s encrypt for SSL on load balancer it should put the main domain? thank you so much before!


Submit an 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.


Yes, this should be doable. You could add your subdomain name as a separate domain to your DigitalOcean account directly.

Then that way it will show up in your domains list when you try to specify it as a custom domain for your Load Balancer.

Then in your main domain’s DNS zone, you will have to add the DigitalOcean nameservers as NS records for your subdomain in the DNS Manager for your main domain.

For Example: In DNS Manager for main add NS records Like. 1799 IN    NS 1799 IN    NS 1799 IN    NS

That way you will be able to manage the DNS for the subdomain in a separate DNS zone than your main domain name and it would be independent.

Hope that this helps.