Question

What will happen if I add a domain with static IP address

Posted December 1, 2021 185 views
DigitalOcean Managed Kubernetes

I already purchased a domain with a static IP address.
If I add this domain and add A record to direct load balancer in the DO, how will happen?
Can I use this domain in the ingress?

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
1 answer

Hello,

Once you purchase a domain name you can fully manage your DNS and point it to any IP address via your DNS zone.

As you mentioned, in case that you need to point your domain to the Load Balancer’s IP address, then you need to go to your DNS zone and update the A record of your domain name to that IP address.

Usually, once you make the change, it could take up to 24/48 hours for the DNS cache to clear over the Globe before you could see the new changes.

Hope that this helps.
Regards,
Bobby

  • Hi Bobby.
    Thanks for your answer.

    I have a question.
    I purchased a domain name without ip address.
    And I added it in the Digital ocean and point it to Load Balancer and also created A record of the domain in the Digital Ocean.

    In this case, should I update the A record of the domain name to the load balancer’s ip address in the DNS zone where I purchased it?

    Thanks in advance.

    • Hi there,

      Each domain name has nameservers associated with it. The nameservers basically ‘tell’ your domain name which DNS zone to use.

      You can manage the nameservers for your domain name via the company that you’ve purchased the domain name from.

      If you change your nameservers to the DigitalOcean ones, then you would have to manage your DNS records via your DigitalOcean control panel.

      DigitalOcean’s nameservers are:

      • ns1.digitalocean.com
      • ns2.digitalocean.com
      • ns3.digitalocean.com

      In case that you are not using the DigitalOcean nameservers, then you need to make your DNS changes via your domain name provider and the DNS zone under your DigitalOcean account will be inactive.

      Hope that this helps! Let me know if you have any questions.
      Best,
      Bobby