Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at https://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: frolow at mail dot ru Reported by:pat at mail dot rit dot edu Summary:php_network_getaddresses: getaddrinfo failed Status: Not a bug Type: Bug Package:Network related Operating System: OpenBSD 2.6 PHP Version:4.0.6 Block user comment: N Private report: N New Comment: rb - descriptor By HelpSet.ru Previous Comments: [2012-06-08 13:12:26] jono at foodnotblogs dot com Confirmed this is a problem in my Php 5.3.13 install. With the following line: file_get_contents(www.google.com); If I run it in the command line, it works fine. If I run it through apache I get the getaddrinfo failed error. I am using Arch Linux, Kernel 3.3.7. My temporary work around is to do a full stop and start of Apache. Restarting the service does not solve the problem. [2011-10-11 11:59:08] fakefur at gmail dot com i am having this same problem with PHP 5.3.8 on Arch Linux ... for me it is manifesting in the IMAP_OPEN function the call works if i use an IP Address (but the certificate files so it is not a solution for me) it also works if i do the call from the PHP CLI module (ie, not running in apache) for now i have had to add an entry in my hosts file but obviously this is not a good long term solution [2011-01-10 15:29:29] zlisiecki at gmail dot com I have the same problem on SuSE, apache with php 5.3.3. I am calling fsockopen with tls://smtp.gmail.com, 465 and for me it seems php possibly considers tls as wrong characters in this place and the resolver cannot resolv the address. Adding a proper line with an IP of smtp.gmail.com to /etc/hosts appeared to be a provisoric solution. [2011-01-06 13:44:51] bostjan at a2o dot si I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. [2010-07-19 12:58:13] office at hermannseib dot com My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=11058 -- Edit this bug report at https://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at https://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: jono at foodnotblogs dot com Reported by:pat at mail dot rit dot edu Summary:php_network_getaddresses: getaddrinfo failed Status: Not a bug Type: Bug Package:Network related Operating System: OpenBSD 2.6 PHP Version:4.0.6 Block user comment: N Private report: N New Comment: Confirmed this is a problem in my Php 5.3.13 install. With the following line: file_get_contents(www.google.com); If I run it in the command line, it works fine. If I run it through apache I get the getaddrinfo failed error. I am using Arch Linux, Kernel 3.3.7. My temporary work around is to do a full stop and start of Apache. Restarting the service does not solve the problem. Previous Comments: [2011-10-11 11:59:08] fakefur at gmail dot com i am having this same problem with PHP 5.3.8 on Arch Linux ... for me it is manifesting in the IMAP_OPEN function the call works if i use an IP Address (but the certificate files so it is not a solution for me) it also works if i do the call from the PHP CLI module (ie, not running in apache) for now i have had to add an entry in my hosts file but obviously this is not a good long term solution [2011-01-10 15:29:29] zlisiecki at gmail dot com I have the same problem on SuSE, apache with php 5.3.3. I am calling fsockopen with tls://smtp.gmail.com, 465 and for me it seems php possibly considers tls as wrong characters in this place and the resolver cannot resolv the address. Adding a proper line with an IP of smtp.gmail.com to /etc/hosts appeared to be a provisoric solution. [2011-01-06 13:44:51] bostjan at a2o dot si I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. [2010-07-19 12:58:13] office at hermannseib dot com My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. [2010-06-02 15:53:43] elynets at gmail dot com Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=11058 -- Edit this bug report at https://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at https://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: fakefur at gmail dot com Reported by:pat at mail dot rit dot edu Summary:php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package:Network related Operating System: OpenBSD 2.6 PHP Version:4.0.6 Block user comment: N Private report: N New Comment: i am having this same problem with PHP 5.3.8 on Arch Linux ... for me it is manifesting in the IMAP_OPEN function the call works if i use an IP Address (but the certificate files so it is not a solution for me) it also works if i do the call from the PHP CLI module (ie, not running in apache) for now i have had to add an entry in my hosts file but obviously this is not a good long term solution Previous Comments: [2011-01-10 15:29:29] zlisiecki at gmail dot com I have the same problem on SuSE, apache with php 5.3.3. I am calling fsockopen with tls://smtp.gmail.com, 465 and for me it seems php possibly considers tls as wrong characters in this place and the resolver cannot resolv the address. Adding a proper line with an IP of smtp.gmail.com to /etc/hosts appeared to be a provisoric solution. [2011-01-06 13:44:51] bostjan at a2o dot si I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. [2010-07-19 12:58:13] office at hermannseib dot com My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. [2010-06-02 15:53:43] elynets at gmail dot com Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. [2010-05-26 23:27:26] pipra133 at yahoo dot com I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=11058 -- Edit this bug report at https://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: zlisiecki at gmail dot com Reported by:pat at mail dot rit dot edu Summary:php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package:Network related Operating System: OpenBSD 2.6 PHP Version:4.0.6 Block user comment: N Private report: N New Comment: I have the same problem on SuSE, apache with php 5.3.3. I am calling fsockopen with tls://smtp.gmail.com, 465 and for me it seems php possibly considers tls as wrong characters in this place and the resolver cannot resolv the address. Adding a proper line with an IP of smtp.gmail.com to /etc/hosts appeared to be a provisoric solution. Previous Comments: [2011-01-06 13:44:51] bostjan at a2o dot si I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. [2010-07-19 12:58:13] office at hermannseib dot com My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. [2010-06-02 15:53:43] elynets at gmail dot com Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. [2010-05-26 23:27:26] pipra133 at yahoo dot com I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? [2010-03-25 06:28:07] cha0s at therealcha0s dot net Still present in 5.3. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: bostjan at a2o dot si Reported by:pat at mail dot rit dot edu Summary:php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package:Network related Operating System: OpenBSD 2.6 PHP Version:4.0.6 Block user comment: N Private report: N New Comment: I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. Previous Comments: [2010-07-19 12:58:13] office at hermannseib dot com My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. [2010-06-02 15:53:43] elynets at gmail dot com Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. [2010-05-26 23:27:26] pipra133 at yahoo dot com I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? [2010-03-25 06:28:07] cha0s at therealcha0s dot net Still present in 5.3. [2009-04-08 05:37:11] aven...@php.net I have this problem on RHEL5 too. My sloved is chmod 644 /etc/hosts Simple,but useful for me. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: office at hermannseib dot com Reported by: pat at mail dot rit dot edu Summary: php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: My solution: Check whether PHP may read /etc/resolv.conf. First, do a ls -la /etc/resolv.conf and if it says something like this -rw-r- 1 root root size date /etc/resolv.conf (i.e, NOT readable to anyone but root and the members of group root, which normally means a highly elitist bunch :-), then issue the following command as root: chmod a+r /etc/resolv.conf This cured the pesky getaddrinfo failed for me. Previous Comments: [2010-06-02 15:53:43] elynets at gmail dot com Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. [2010-05-26 23:27:26] pipra133 at yahoo dot com I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? [2010-03-25 06:28:07] cha0s at therealcha0s dot net Still present in 5.3. [2009-04-08 05:37:11] aven...@php.net I have this problem on RHEL5 too. My sloved is chmod 644 /etc/hosts Simple,but useful for me. [2004-09-27 19:06:52] rowaldru at gpi dot com I am currently on 4.3.8. Has this issue been addressed and fixed in 5.0.1? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: elynets at gmail dot com Reported by: pat at mail dot rit dot edu Summary: php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Hello, I`ve got the same problem on my server while tried to execute some of my scripts. The only solution that works fine for me is to disable firewall. When firewall is disabled I get no errors. In the firewall settings all traffic allowed on ports 80 and 53. Previous Comments: [2010-05-26 23:27:26] pipra133 at yahoo dot com I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? [2010-03-25 06:28:07] cha0s at therealcha0s dot net Still present in 5.3. [2009-04-08 05:37:11] aven...@php.net I have this problem on RHEL5 too. My sloved is chmod 644 /etc/hosts Simple,but useful for me. [2004-09-27 19:06:52] rowaldru at gpi dot com I am currently on 4.3.8. Has this issue been addressed and fixed in 5.0.1? [2004-08-21 14:38:39] webmaster at hg-carstyling dot de ages later, i found a solution, what solves it for me here. the problem seems to base on the name resolution for the remote machine. a typical error while opening a remote file was: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 Warning: fsockopen(): unable to connect to mx.freenet.de:110 in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 i tryed to reconfigure my named configuration, without any result, to fix this. the problem was solved by adding the following line to my /etc/hosts: 194.97.55.147 mx.freenet.de i have to do this for any remote machine i like to open files on. this is NOT the basic of that problem, but patches arround that. i was not able, to tell my named, to resolv that adress to that ip, so i have to enter that in /etc/hosts . it seems, the problem is the name-resolution domain to ip, as it was discribed already here and on other sources before. over that, it is not a problem of all your php-scripts, you`ve written and were the error comes. just enter the unknown machine to your hosts file and all went fine. i tryed many different configurations of my bind, but was not able, to resolve other top level domains within a full qualified domain name so i feel to say its a bug in bind by isc, but this can also be a security relatet problem. i am open for mail and requests and i am very interrested on the basic solution. regardz :) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: pipra133 at yahoo dot com Reported by: pat at mail dot rit dot edu Summary: php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: I am having the same problem .. I am using XAMPP 2.5 version ... it did work for me on the last version I am using the youtube API to receive youtube videos ... there is a major change in my case Message: Unable to Connect to tcp://gdata.youtube.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. the return says it tries with TCP rather then http , but my actual stack trace says it is HTTP . #0 C:\xampp\php\PEAR\Zend\Gdata.php(221): Zend_Gdata_App-performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) Does anyone have a clue what is wrong ??? Previous Comments: [2010-03-25 06:28:07] cha0s at therealcha0s dot net Still present in 5.3. [2009-04-08 05:37:11] aven...@php.net I have this problem on RHEL5 too. My sloved is chmod 644 /etc/hosts Simple,but useful for me. [2004-09-27 19:06:52] rowaldru at gpi dot com I am currently on 4.3.8. Has this issue been addressed and fixed in 5.0.1? [2004-08-21 14:38:39] webmaster at hg-carstyling dot de ages later, i found a solution, what solves it for me here. the problem seems to base on the name resolution for the remote machine. a typical error while opening a remote file was: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 Warning: fsockopen(): unable to connect to mx.freenet.de:110 in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 i tryed to reconfigure my named configuration, without any result, to fix this. the problem was solved by adding the following line to my /etc/hosts: 194.97.55.147 mx.freenet.de i have to do this for any remote machine i like to open files on. this is NOT the basic of that problem, but patches arround that. i was not able, to tell my named, to resolv that adress to that ip, so i have to enter that in /etc/hosts . it seems, the problem is the name-resolution domain to ip, as it was discribed already here and on other sources before. over that, it is not a problem of all your php-scripts, you`ve written and were the error comes. just enter the unknown machine to your hosts file and all went fine. i tryed many different configurations of my bind, but was not able, to resolve other top level domains within a full qualified domain name so i feel to say its a bug in bind by isc, but this can also be a security relatet problem. i am open for mail and requests and i am very interrested on the basic solution. regardz :) [2004-08-16 01:40:43] hachem at phptunisia dot com restart the bind The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
Edit report at http://bugs.php.net/bug.php?id=11058edit=1 ID: 11058 Comment by: cha0s at therealcha0s dot net Reported by: pat at mail dot rit dot edu Summary: php_network_getaddresses: getaddrinfo failed Status: Bogus Type: Bug Package: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Still present in 5.3. Previous Comments: [2009-04-08 05:37:11] aven...@php.net I have this problem on RHEL5 too. My sloved is chmod 644 /etc/hosts Simple,but useful for me. [2004-09-27 19:06:52] rowaldru at gpi dot com I am currently on 4.3.8. Has this issue been addressed and fixed in 5.0.1? [2004-08-21 14:38:39] webmaster at hg-carstyling dot de ages later, i found a solution, what solves it for me here. the problem seems to base on the name resolution for the remote machine. a typical error while opening a remote file was: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 Warning: fsockopen(): unable to connect to mx.freenet.de:110 in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 i tryed to reconfigure my named configuration, without any result, to fix this. the problem was solved by adding the following line to my /etc/hosts: 194.97.55.147 mx.freenet.de i have to do this for any remote machine i like to open files on. this is NOT the basic of that problem, but patches arround that. i was not able, to tell my named, to resolv that adress to that ip, so i have to enter that in /etc/hosts . it seems, the problem is the name-resolution domain to ip, as it was discribed already here and on other sources before. over that, it is not a problem of all your php-scripts, you`ve written and were the error comes. just enter the unknown machine to your hosts file and all went fine. i tryed many different configurations of my bind, but was not able, to resolve other top level domains within a full qualified domain name so i feel to say its a bug in bind by isc, but this can also be a security relatet problem. i am open for mail and requests and i am very interrested on the basic solution. regardz :) [2004-08-16 01:40:43] hachem at phptunisia dot com restart the bind [2004-07-14 22:29:05] neil dot giarratana at lucidus dot net Don't know if this helps at all but on RH9, if I do a service network restart, all is well again and I don't get that error anymore. Beats the heck out of restarting the whole server The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=11058 -- Edit this bug report at http://bugs.php.net/bug.php?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: forums at vertdeterre dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: fsockopen doesn't support http:// in the url name, first parameter of the fonction. for example $url = www.google.com; $fp = fsockopen($url, 80, $errno, $errstr, 30); return TRUE while $url = http://www.google.com;; $fp = fsockopen($url, 80, $errno, $errstr, 30); return php_network_getaddresses: getaddrinfo failed: Name or service not known regards Previous Comments: [2004-08-21 14:38:39] webmaster at hg-carstyling dot de ages later, i found a solution, what solves it for me here. the problem seems to base on the name resolution for the remote machine. a typical error while opening a remote file was: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 Warning: fsockopen(): unable to connect to mx.freenet.de:110 in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 i tryed to reconfigure my named configuration, without any result, to fix this. the problem was solved by adding the following line to my /etc/hosts: 194.97.55.147 mx.freenet.de i have to do this for any remote machine i like to open files on. this is NOT the basic of that problem, but patches arround that. i was not able, to tell my named, to resolv that adress to that ip, so i have to enter that in /etc/hosts . it seems, the problem is the name-resolution domain to ip, as it was discribed already here and on other sources before. over that, it is not a problem of all your php-scripts, you`ve written and were the error comes. just enter the unknown machine to your hosts file and all went fine. i tryed many different configurations of my bind, but was not able, to resolve other top level domains within a full qualified domain name so i feel to say its a bug in bind by isc, but this can also be a security relatet problem. i am open for mail and requests and i am very interrested on the basic solution. regardz :) [2004-08-16 01:40:43] hachem at phptunisia dot com restart the bind [2004-07-14 22:29:05] neil dot giarratana at lucidus dot net Don't know if this helps at all but on RH9, if I do a service network restart, all is well again and I don't get that error anymore. Beats the heck out of restarting the whole server [2004-06-30 18:17:09] webmaster at hg-carstyling dot de i have that problem, too, on 4 machines running RH9, FC1 and FC2. I spend some whole days to solve it, but cannot get the basic of this problem. On 1 machine i have serveral virt. domains, were i enter the hostnames of 2 domains in /etc/hosts, what results in a fix on one domain, another domain on the same machine was not affected and the error stays as bevor. I Tryed out, to fix my /var/named/my.stupid.zone, were i found a missconfiguration by redhat-config-bind. I fix the config, checked my nameserver out and hes runnin fine with no errors, but the getadress error stays as bevor and was not affected. I am not really sure, if my dns is perfectly configured, but i get no errors there and funcionality is given, expecting the getadress error by php. Over that, i cannot see anybody, who has full fixed this problem , so its a discussion worth, but where ?! I thing, it makes sense, if the Developers, that does or maintain the filesocket functions of php, has a deeper look in this Problem, even if its not php based, but they will have a clear overview, of what happened and maybe they can give us a hint. What about the sockets ? I thing, it is any incompatibility btw. named and the network classes of php, especaially php mail and file network structures or classes, maybe sockets ?! On RH8 there are no such errors. In any case, this costs lotsa time :( ... [2004-06-10 14:40:34] austinputman at hotmail dot com I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 --
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: webmaster at hg-carstyling dot de Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: ages later, i found a solution, what solves it for me here. the problem seems to base on the name resolution for the remote machine. a typical error while opening a remote file was: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 Warning: fsockopen(): unable to connect to mx.freenet.de:110 in /home/carstyling/public_html/newnuke/modules/WebMail/pop3.php on line 70 i tryed to reconfigure my named configuration, without any result, to fix this. the problem was solved by adding the following line to my /etc/hosts: 194.97.55.147 mx.freenet.de i have to do this for any remote machine i like to open files on. this is NOT the basic of that problem, but patches arround that. i was not able, to tell my named, to resolv that adress to that ip, so i have to enter that in /etc/hosts . it seems, the problem is the name-resolution domain to ip, as it was discribed already here and on other sources before. over that, it is not a problem of all your php-scripts, you`ve written and were the error comes. just enter the unknown machine to your hosts file and all went fine. i tryed many different configurations of my bind, but was not able, to resolve other top level domains within a full qualified domain name so i feel to say its a bug in bind by isc, but this can also be a security relatet problem. i am open for mail and requests and i am very interrested on the basic solution. regardz :) Previous Comments: [2004-08-16 01:40:43] hachem at phptunisia dot com restart the bind [2004-07-14 22:29:05] neil dot giarratana at lucidus dot net Don't know if this helps at all but on RH9, if I do a service network restart, all is well again and I don't get that error anymore. Beats the heck out of restarting the whole server [2004-06-30 18:17:09] webmaster at hg-carstyling dot de i have that problem, too, on 4 machines running RH9, FC1 and FC2. I spend some whole days to solve it, but cannot get the basic of this problem. On 1 machine i have serveral virt. domains, were i enter the hostnames of 2 domains in /etc/hosts, what results in a fix on one domain, another domain on the same machine was not affected and the error stays as bevor. I Tryed out, to fix my /var/named/my.stupid.zone, were i found a missconfiguration by redhat-config-bind. I fix the config, checked my nameserver out and hes runnin fine with no errors, but the getadress error stays as bevor and was not affected. I am not really sure, if my dns is perfectly configured, but i get no errors there and funcionality is given, expecting the getadress error by php. Over that, i cannot see anybody, who has full fixed this problem , so its a discussion worth, but where ?! I thing, it makes sense, if the Developers, that does or maintain the filesocket functions of php, has a deeper look in this Problem, even if its not php based, but they will have a clear overview, of what happened and maybe they can give us a hint. What about the sockets ? I thing, it is any incompatibility btw. named and the network classes of php, especaially php mail and file network structures or classes, maybe sockets ?! On RH8 there are no such errors. In any case, this costs lotsa time :( ... [2004-06-10 14:40:34] austinputman at hotmail dot com I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. [2004-05-26 21:45:26] jpipes1 at columbus dot rr dot com We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: hachem at phptunisia dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: restart the bind Previous Comments: [2004-07-14 22:29:05] neil dot giarratana at lucidus dot net Don't know if this helps at all but on RH9, if I do a service network restart, all is well again and I don't get that error anymore. Beats the heck out of restarting the whole server [2004-06-30 18:17:09] webmaster at hg-carstyling dot de i have that problem, too, on 4 machines running RH9, FC1 and FC2. I spend some whole days to solve it, but cannot get the basic of this problem. On 1 machine i have serveral virt. domains, were i enter the hostnames of 2 domains in /etc/hosts, what results in a fix on one domain, another domain on the same machine was not affected and the error stays as bevor. I Tryed out, to fix my /var/named/my.stupid.zone, were i found a missconfiguration by redhat-config-bind. I fix the config, checked my nameserver out and hes runnin fine with no errors, but the getadress error stays as bevor and was not affected. I am not really sure, if my dns is perfectly configured, but i get no errors there and funcionality is given, expecting the getadress error by php. Over that, i cannot see anybody, who has full fixed this problem , so its a discussion worth, but where ?! I thing, it makes sense, if the Developers, that does or maintain the filesocket functions of php, has a deeper look in this Problem, even if its not php based, but they will have a clear overview, of what happened and maybe they can give us a hint. What about the sockets ? I thing, it is any incompatibility btw. named and the network classes of php, especaially php mail and file network structures or classes, maybe sockets ?! On RH8 there are no such errors. In any case, this costs lotsa time :( ... [2004-06-10 14:40:34] austinputman at hotmail dot com I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. [2004-05-26 21:45:26] jpipes1 at columbus dot rr dot com We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: neil dot giarratana at lucidus dot net Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Don't know if this helps at all but on RH9, if I do a service network restart, all is well again and I don't get that error anymore. Beats the heck out of restarting the whole server Previous Comments: [2004-06-30 18:17:09] webmaster at hg-carstyling dot de i have that problem, too, on 4 machines running RH9, FC1 and FC2. I spend some whole days to solve it, but cannot get the basic of this problem. On 1 machine i have serveral virt. domains, were i enter the hostnames of 2 domains in /etc/hosts, what results in a fix on one domain, another domain on the same machine was not affected and the error stays as bevor. I Tryed out, to fix my /var/named/my.stupid.zone, were i found a missconfiguration by redhat-config-bind. I fix the config, checked my nameserver out and hes runnin fine with no errors, but the getadress error stays as bevor and was not affected. I am not really sure, if my dns is perfectly configured, but i get no errors there and funcionality is given, expecting the getadress error by php. Over that, i cannot see anybody, who has full fixed this problem , so its a discussion worth, but where ?! I thing, it makes sense, if the Developers, that does or maintain the filesocket functions of php, has a deeper look in this Problem, even if its not php based, but they will have a clear overview, of what happened and maybe they can give us a hint. What about the sockets ? I thing, it is any incompatibility btw. named and the network classes of php, especaially php mail and file network structures or classes, maybe sockets ?! On RH8 there are no such errors. In any case, this costs lotsa time :( ... [2004-06-10 14:40:34] austinputman at hotmail dot com I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. [2004-05-26 21:45:26] jpipes1 at columbus dot rr dot com We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: webmaster at hg-carstyling dot de Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: i have that problem, too, on 4 machines running RH9, FC1 and FC2. I spend some whole days to solve it, but cannot get the basic of this problem. On 1 machine i have serveral virt. domains, were i enter the hostnames of 2 domains in /etc/hosts, what results in a fix on one domain, another domain on the same machine was not affected and the error stays as bevor. I Tryed out, to fix my /var/named/my.stupid.zone, were i found a missconfiguration by redhat-config-bind. I fix the config, checked my nameserver out and hes runnin fine with no errors, but the getadress error stays as bevor and was not affected. I am not really sure, if my dns is perfectly configured, but i get no errors there and funcionality is given, expecting the getadress error by php. Over that, i cannot see anybody, who has full fixed this problem , so its a discussion worth, but where ?! I thing, it makes sense, if the Developers, that does or maintain the filesocket functions of php, has a deeper look in this Problem, even if its not php based, but they will have a clear overview, of what happened and maybe they can give us a hint. What about the sockets ? I thing, it is any incompatibility btw. named and the network classes of php, especaially php mail and file network structures or classes, maybe sockets ?! On RH8 there are no such errors. In any case, this costs lotsa time :( ... Previous Comments: [2004-06-10 14:40:34] austinputman at hotmail dot com I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. [2004-05-26 21:45:26] jpipes1 at columbus dot rr dot com We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: austinputman at hotmail dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: I had the same problem as pat at mail dot rit dot edu using fsockopen(). He/she uses: fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30); But you shouldn't use 'http://' in the server name part. So use this instead. fsockopen(www.php.net, 80, $errno, $errstr, 30); Maybe this will not solve everybodies problem, but it sure solved mine. Previous Comments: [2004-05-26 21:45:26] jpipes1 at columbus dot rr dot com We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: jpipes1 at columbus dot rr dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) Previous Comments: [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: cosas at minovela dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( Previous Comments: [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start [2002-04-03 16:27:07] g dot almasi at gigcity dot com Well you can tell I had nothing to do today but beat my head against a wall. But I found a solution! I added my target site to /etc/hosts and restarted apache, and now I can include a page in that target site from a different site. It's Miller Time! psht, glug glug glug [2002-04-03 16:20:32] [EMAIL PROTECTED] And that is the cause of the problem (and the reason that this report is set to bogus). You need to tell your SuSE box how to resolve the addresses; the SuSE yast tool should let you set the nameserver in it's network configuration. I can't help you any further here, and this is not the place to discuss this further. I'd suggest looking at the SuSE support database for this: it's bound to be a FAQ. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: cosas at minovela dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... Previous Comments: [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start [2002-04-03 16:27:07] g dot almasi at gigcity dot com Well you can tell I had nothing to do today but beat my head against a wall. But I found a solution! I added my target site to /etc/hosts and restarted apache, and now I can include a page in that target site from a different site. It's Miller Time! psht, glug glug glug The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: jeppe at bundsgaard dot net Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). Previous Comments: [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start [2002-04-03 16:27:07] g dot almasi at gigcity dot com Well you can tell I had nothing to do today but beat my head against a wall. But I found a solution! I added my target site to /etc/hosts and restarted apache, and now I can include a page in that target site from a different site. It's Miller Time! psht, glug glug glug [2002-04-03 16:20:32] [EMAIL PROTECTED] And that is the cause of the problem (and the reason that this report is set to bogus). You need to tell your SuSE box how to resolve the addresses; the SuSE yast tool should let you set the nameserver in it's network configuration. I can't help you any further here, and this is not the place to discuss this further. I'd suggest looking at the SuSE support database for this: it's bound to be a FAQ. [2002-04-03 15:58:04] g dot almasi at gigcity dot com another note: I have root to another box (it serves about 20 sites to the web) that is also running PHP 4.0.6 and php_network_getaddresses works fine. Does this function require a nameserver? My SuSE 7.3 box is a development machine on my LAN, so I just use proxies to get to it with a browser. Getting DNS, BIND, and DHCP to work was beyond me when I set it up (still is, actually). So I just use a proxy setting for browsers while I build sites. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: cosas at minovela dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message php_network_getaddresses: getaddrinfo failed when i use this line: fsockopen (dummy_ip, 25, $errno, $errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=esie=UTF-8oe=UTF-8q=php+php_network_getaddresses%3A+getaddrinfo+failedmeta= target php_network_getaddresses: getaddrinfo failed and see results, a lot of people get the same errors. i hope you found a solution for this :) Previous Comments: [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start [2002-04-03 16:27:07] g dot almasi at gigcity dot com Well you can tell I had nothing to do today but beat my head against a wall. But I found a solution! I added my target site to /etc/hosts and restarted apache, and now I can include a page in that target site from a different site. It's Miller Time! psht, glug glug glug [2002-04-03 16:20:32] [EMAIL PROTECTED] And that is the cause of the problem (and the reason that this report is set to bogus). You need to tell your SuSE box how to resolve the addresses; the SuSE yast tool should let you set the nameserver in it's network configuration. I can't help you any further here, and this is not the place to discuss this further. I'd suggest looking at the SuSE support database for this: it's bound to be a FAQ. [2002-04-03 15:58:04] g dot almasi at gigcity dot com another note: I have root to another box (it serves about 20 sites to the web) that is also running PHP 4.0.6 and php_network_getaddresses works fine. Does this function require a nameserver? My SuSE 7.3 box is a development machine on my LAN, so I just use proxies to get to it with a browser. Getting DNS, BIND, and DHCP to work was beyond me when I set it up (still is, actually). So I just use a proxy setting for browsers while I build sites. [2002-04-03 14:18:22] g dot almasi at gigcity dot com So I just tried changing a line in /etc/modules.conf: - From alias net-pf-10 off - To alias net-pf-10 ipv6 I rebooted the box and I still had this problem happening. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1
#11058 [Com]: php_network_getaddresses: getaddrinfo failed
ID: 11058 Comment by: fcartegnie dot at dot free dot dot dot fr at null dot null Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment: Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start Previous Comments: [2002-04-03 16:27:07] g dot almasi at gigcity dot com Well you can tell I had nothing to do today but beat my head against a wall. But I found a solution! I added my target site to /etc/hosts and restarted apache, and now I can include a page in that target site from a different site. It's Miller Time! psht, glug glug glug [2002-04-03 16:20:32] [EMAIL PROTECTED] And that is the cause of the problem (and the reason that this report is set to bogus). You need to tell your SuSE box how to resolve the addresses; the SuSE yast tool should let you set the nameserver in it's network configuration. I can't help you any further here, and this is not the place to discuss this further. I'd suggest looking at the SuSE support database for this: it's bound to be a FAQ. [2002-04-03 15:58:04] g dot almasi at gigcity dot com another note: I have root to another box (it serves about 20 sites to the web) that is also running PHP 4.0.6 and php_network_getaddresses works fine. Does this function require a nameserver? My SuSE 7.3 box is a development machine on my LAN, so I just use proxies to get to it with a browser. Getting DNS, BIND, and DHCP to work was beyond me when I set it up (still is, actually). So I just use a proxy setting for browsers while I build sites. [2002-04-03 14:18:22] g dot almasi at gigcity dot com So I just tried changing a line in /etc/modules.conf: - From alias net-pf-10 off - To alias net-pf-10 ipv6 I rebooted the box and I still had this problem happening. [2002-04-03 14:03:19] g dot almasi at gigcity dot com Is this setting in /etc/rc.config? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058edit=1