Question

Temporary failure in name resolution

Every so often a droplet will start throwing this error out of the blue:

“Temporary failure in name resolution”

PHP error (redacted):

{"error":{"msg":"php_network_getaddresses: getaddrinfo for xxx-000000-do-user-000000-0.b.db.ondigitalocean.com failed: Temporary failure in name resolution","code":2002}}

It’s occurring because it’s trying to make a SQL connection to a DO managed DB.

The issue only occurs from THAT droplet, no other. Other droplets can communicate with the managed DB without issue. I can even remotely connect to the Managed DB and can see that it’s running fine. The issue is purely isolated to the one droplet at that moment.

Then, after about 10-15 minutes, the issue resolves and the said droplet starts talking to the managed DB again.

What causes this? The instances of it occurring a very random, from different droplets, usually without any significant or unusual activity or process. The fact that we can connect into the managed DB remotely suggests that it’s an internal issue within DO.

A few articles here suggest that it’s a DNS issue


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.

Happening again, for no apparent reason.

php_network_getaddresses: getaddrinfo for [xxx-04-do-user-xxxxx-0.b.db.ondigitalocean.com](http://xxx-04-do-user-xxxxx-0.b.db.ondigitalocean.com/) failed: Temporary failure in name resolution in...

The database is fine, other droplets can talk to it without issue and I’ve personally made queries against it.

What is happening @digitalOcean???

It’s still happening from time to time, this one was just a few minutes ago:

Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for xxxxxxxxxxx-xx-do-user-11111111111-0.b.db.ondigitalocean.com failed: Temporary failure in name resolution in...

There are no noted networking issues by DO. It’s only affecting on Droplet in system, others within the same VPC are functioning fine and I can otherwise query the database remotely.

Very strange and annoying

Bobby Iliev
Site Moderator
Site Moderator badge
July 10, 2023

Hi there,

This is quite interesting, are you still seeing that problem?

As far as I can see there was a networking incident reported on the DigitalOcean status page approximately during the same period that you’ve experienced that problem:

https://status.digitalocean.com/incidents/1d5qv6pmsv6b

If you are still seeing the problem, please reach out to the DigitalOcean support team who will be able to further investigate this for you since it is related to the Managed database instance:

https://www.digitalocean.com/support/

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.