tux php_network_getaddresses: getaddrinfo failed

if you get an error like this:

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152

Warning: file_get_contents(http://images.google.com.tr/images?as_q=neteyaz&hl=tr&um=1&btnG=Google%27da+Ara&as_epq=&as_oq=&as_eq=&imgtype=&imgsz=&imgw=&imgh=&imgar=&as_filetype=jpg&imgc=&as_sitesearch=&as_rights=&safe=images&as_st=y) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152

SOLUTION: check your /etc/hosts file. most likely there are two lines to describe your server.
ping your domain and get your ip. then remove other ip addresses. restart server.

November 12, 2009
Posted in Linux Tips — banias @ 2:23 pm

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment