Question

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

Posted September 12, 2021 85 views
ApacheConfiguration ManagementControl Panels

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?

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.

×
Submit an Answer
2 answers

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.

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