[Techtalk] name resolution problem with PHP

Katie Bechtold katie at katie-and-rob.org
Wed Sep 29 09:39:00 EST 2004


So I have a PHP scripted called index.php that includes a section like
this one:

<?php
include "http://www.livejournal.com/customview.cgi".
        "?username=bokunenjin&styleid=509089";
?>


When this code is processed, I get the following warning:

Warning: main(): php_network_getaddresses: getaddrinfo failed:
Temporary failure in name resolution in index.php on <that line up
there with the URL>


However, if I SSH into the machine on which this page is hosted, the
DNS entry is resolved with no problems:

# ping www.livejournal.com
PING www.livejournal.com (66.150.15.150): 56 data bytes
64 bytes from 66.150.15.150: icmp_seq=0 ttl=242 time=462.7 ms
64 bytes from 66.150.15.150: icmp_seq=1 ttl=242 time=84.3 ms
64 bytes from 66.150.15.150: icmp_seq=2 ttl=242 time=84.0 ms


What is different about how PHP performs name resolution from how
other programs on that same machine perform name resolution?

-- 
Katie Bechtold         http://katie-and-rob.org/




More information about the Techtalk mailing list