apache user is unable to resolve IP addresses in F10

Christopher Stone chris.stone at gmail.com
Fri Dec 5 01:35:34 UTC 2008


The following PHP code is not working in F10:

<?php
$fp = fsockopen ("redhat.com", 80, $errno, $errstr, 30);
if (!$fp) echo "$errstr ($errno)<br>\n";
else { echo "worked"; fclose($fp); }
?>

Result: php_network_getaddresses: getaddrinfo failed: Name or service
not known (0)

Adding redhat.com's IP to my /etc/hosts gets it to work, but obviously
this is not the correct solution to the problem.

Can anyone else here reproduce this on their F10 web servers?  Or am I
all alone?

NOTE:  I get same results in both Permissive and Enforcing selinux modes.

This was working in F9, it just started happening when I upgraded.




More information about the fedora-devel-list mailing list