Question

how do I associate a domain with a droplet/IP address

I have a domain name registered through domain.com and pointing to Digital Ocean nameservers. This domain name is listed as a domain with Digital Ocean.

I have a droplet setup with AMP. I have an IP address that I can access publicly. I have website that can be accessed through this IP address. How do I associate the domain name with the IP address?

Is there some configuration that needs to be done on Digital Ocean via the control panel? Or do I simply work with the Apache web server?


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.

Hi there,

Fully agree with what @tjsherlock said. I would just add a link to the documentation on how to add DNS records via the DigitalOcean control panel:

https://docs.digitalocean.com/products/networking/dns/how-to/manage-records/

Regards, Bobby

It would appear that it is as simple as setting up an ‘A’ record for the domain, which associates the ip address with the domain name.

Type: A

Hostname: mydomainname.com

Value: IP address associated with droplet

TTL: 3600

I’ll know more accurately perhaps in a few hours once the record propagates throughout the Internet. The record does not take effect immediately.