I have a dns problem with my server. PHP Error: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution Code (markup): Then i ran this command (using hyper vm) host google.com I got this error ;; connection timed out; no servers could be reached Code (markup): So are some possible problems and how to fix those problems.
What is in the '/etc/resolv.conf' file? This is where your servers external name servers should be listed. To use OpenDNS's servers, place this following in: nameserver 208.67.222.222 nameserver 208.67.220.220
what is the OS of your server? Definitely check /etc/resolv.conf (assuming linux). Here are some things that have caused me this error in the past: resolv.conf not configured resolv.conf set with unresponsive nameservers (try opendns) eth0 not up (use ifconfig to check) ping an IP address of a known server. Results? Running a firewall? Check that DNS requests are allowed out. Restart networking; maybe a recent change was not implemented? Reboot the server (and drink a beer). You would be surprised.
Thanks, it was the nameservers. How do I keep them perm.? Because if I restart my vps, they go back to the original.
If you are using Debian or Ubuntu, check /etc/network/interfaces. Your host may have set nameservers there. (there is a similar file for other Linux distros). After that, resolv.conf should survive a reboot unless your host set another init script somewhere that resets defaults for some reason