When moving web server to new droplet will DNS find it and update records automatically?

Posted July 10, 2016 1.9k views

I have a DigitalOcean “Droplet” test server that is running PHP5.3. Yesterday I created a new test server Droplet running LAMP with PHP7.0 and set it up with the same Domain Name as the PHP5.3 Droplet. Then I turned off the PHP5.3 Droplet. Since the new PHP7.0 Droplet uses the same Nameservers, will the DNS system realize that the IP Address has changed for that Domain Name? Or is there something I need to do to nudge the DNS system to do this update?

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

In the DO control panel in the droplets tab, make note of the IP address of your active droplet. Go to the Networking tab of the DO control panel and click the Domains link to the left. Then click on the domain you want to verify. Look for the A record and make sure the IP address matches the IP address of your active droplet. If not, change it and save the A record. It may take a few minutes to a few hours for your changes to propagate throughout the internet, although you can use the following linux command line to expedite your test:

host yourdomainnamehere