Php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

Hi everyone. From few days i receive some errors in my free hosting project.
The first was Connection close and from this morning the error is php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

Can someone share some opinion how to fix it ?
Thanks in advance

Is this a Mysqli connection error? It can be due:

  1. Something is temporary Down.
  2. The information You’ve given to the database is invalid. Note Php and mysql system are careful about the data, Which means if there be a mistake at codes or infos They’ll throw error.

This error means that there is an issue lookup up the IP address for a particular domain name. This could be an issue with an external web request, database request, or something else. As for how to fix it, that depends on what’s causing the issue in the first place. It could be an issue with your code, our server, or with the domain name you’re trying to access.

Can you try to debug your code to figure out where this error is being generated and what’s the domain name that cannot be found?


Before few days everything will be fine and dont have errors. i am not change code but 3 days ago starting Connection Close error on the next day this error was clean. This morning i see much times Php_network_getaddresses: getaddrinfo failed . However, i think i have some kind of bad software because i see too much ads in every web site, and i think the error is from this. Thanks for your time.

I’m sorry, but to my knowledge, nothing was changed on our end in the last few days which could cause this issue. If I did know of such a thing, I would have told you the first time you said it worked fine a few days ago.

So instead of repeating that it worked fine before, can you please follow my instructions and debug your code so we at least know what your code is unable to connect to? Knowing what exactly you are unable to connect to is vital to be able to reproduce and investigate this issue.

1 Like

Okay i will, and i give answer, but now domain is not available :frowning:

Okay everything is good. All my connection settings are good. The problem for now is gone, in fact predviously few days was good, and then 1-2 days bad. But for now everything is ok

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.