What if two droplet have same virtual host?

This is a general question and it makes me very curious.

What if two separate droplets have same virtual hosts? for example XYZ.COM is tied to NS1.DIGITALOCEAN.COM, NS2.DIGITALOCEAN.COM, NS3.DIGITALOCEAN.COM and two droplet has virtual hosts for the same server XYZ.COM. What happens? Which droplet owns it in that case

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Sounds like, based on the nature of your questions, you need to brush up on all that is DNS. Google comes in handy, in that regard. <br> <br><b>“How do I control the domain to go to a specific IP?”</b> <br> <br>You have to create DNS records for your domain. You have a choice on where to manage them: (1) GoDaddy; (2) DigitalOcean’s <a href=“”>DNS Manager</a>; or (3) yourself. <br> <br>If you’re using DigitalOcean’s name servers, check out: <a href=“”>How To Create Vanity or Branded Nameservers with DigitalOcean Cloud Servers</a>.

Thanks for the info. How do I control the domain to go to a specific IP? I have a domain in godaddy and all I provide in godaddy is name servers (NS1, NS2). Both the droplets have same Name servers too. <br> <br>Is there any way I can attach a domain to a specific IP?

The droplets will have different IP addresses. <br> <br>The domain will only be tied to one IP, and will therefore only go to one server/droplet