To add your domain to DigitalOcean, you'll typically follow a series of steps that involve configuring your domain settings both on DigitalOcean's platform and with your domain registrar. Here is a general guide:
Step 1: Sign in to your DigitalOcean account
Make sure you have an account on DigitalOcean, and sign in to the DigitalOcean Control Panel.
Step 2: Add your domain to DigitalOcean
- In the DigitalOcean Control Panel, click on the "Networking" tab.
- Select "Domains" from the dropdown menu.
- Click the "Add Domain" button.
- Enter your domain name and select the project you want to associate with the domain.
- Click the "Add Domain" button to save.
Step 3: Configure DNS settings on DigitalOcean
- After adding the domain, you will see it listed on the "Domains" page. Click on the domain name.
- In the domain settings, you will need to configure the DNS records. At a minimum, you will likely need to set up an "A" record to point to the IP address of your server or a "CNAME" record for subdomains.
- Add any other necessary records, such as MX records for email, TXT records for verification purposes, etc.
- Save the DNS settings.
Step 4: Update domain settings with your registrar
Log in to your domain registrar's website (the service where you purchased your domain), and follow these general steps:
- Find the DNS or Domain Management section.
- Locate the option to manage DNS records.
- Update the name servers to DigitalOcean's name servers. DigitalOcean usually provides you with three nameservers, and you'll need to replace the existing ones with DigitalOcean's. This step delegates the DNS resolution for your domain to DigitalOcean.
Step 5: Wait for DNS propagation
Changes to DNS settings may take some time to propagate across the internet. It can take anywhere from a few minutes to 48 hours for these changes to take effect globally.
Step 6: Verify Configuration
After DNS propagation is complete, you can use tools like
dig or online DNS lookup tools to verify that your domain is correctly configured to point to your DigitalOcean resources.
Remember that specific steps may vary slightly depending on your domain registrar and the services you are using on DigitalOcean. Always refer to the documentation provided by DigitalOcean and your domain registrar for the most accurate and up-to-date instructions.