Using latest 4.7 version.
I have two sites on the same server.
one is called test.blah.com
one is the IP address of the server e.g. 47.5.2.3
set up channel on test.blah.com
and then try to subscribe to it from IP address site and I get the following error:
* warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in
name resolution in /var/www/html/includes/common.inc on line 371.
* warning: fsockopen(): unable to connect to test.cooldomain.com:80 in
/var/www/html/includes/common.inc on line 371.
* Are you sure you entered a valid XML-RPC endpoint?
* Unable to subscribe.
Comments
Comment #1
jvandyk commentedThe subscribing site asks the publishing site if it may subscribe.
The publishing site gets the IP from $_SERVER['REMOTE_ADDR'] and does a gethostbyaddr() on it. This is failing for you, probably because there is no DNS entry for that IP.
Try creating an entry in your hosts file (http://en.wikipedia.org/wiki/Hosts_file) so that DNS resolution will work.
Comment #2
Roland Tanglao@bryght.com commentedThanks John!
I fixed the config problem and can now sucessfully pull content from one machine to another but I get this error message:
It seems to have worked, is this just a debug warning?
Comment #3
jvandyk commentedI've updated the subscribe.module to prevent this error. Please let me know if it happens again.
Comment #4
(not verified) commented