What should be the IP Address for new domains under a droplet?

I just set up a droplet and got its IP address. Now, I know for adding a domain under this droplet: I need to update the name servers of my domain from domain registrar. I did it.

1. Now, coming back to domain configurations, the hostname equals my domain name but, what is the meaning of custom Ip or droplet ip there? 3. Secondly, when I’ll sub domain under that domain then, hostname equals my subdomain.mydomain.etc but again, what would be the IP address next to it?

Please, clear me with these confusions. Looking forward to a response. Thank you!

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.

Hey there,

All the domains hosted on a Droplet would point to the same IP address. The web server software will interpret requests and send users to the right websites. If you are using Apache as your web server, this type of configuration is referenced as VirtualHosts. Here is a tutorial that talks about setting up virtualhosts on a Droplet, in other words, multiple sites hosted on a single Droplet.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean