By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,630 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,630 IT Pros & Developers. It's quick & easy.

Problem with gethostbyaddr

P: n/a
Hi

Since yesterday about 11.00 CET the gethostbyaddr function doesn't seem
to be working. All I get is the IP address back. Is this something
general to all PHP users or is this specific to my server?

Thanks

BTW what's the difference between comp.lang.php, alt.php and
alt.comp.lang.php, shouldn't these groups be merged?

Regards

Dec 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ch***********@hotmail.com wrote:
Since yesterday about 11.00 CET the gethostbyaddr function doesn't seem
to be working. All I get is the IP address back. Is this something
general to all PHP users or is this specific to my server?
Just tested it on my localhost and it works so it must be a problem on
the server.

Does anyone know what was changed on the server to stop it working?

Thanks

Dec 6 '06 #2

P: n/a
ch***********@hotmail.com wrote:
ch***********@hotmail.com wrote:
>Since yesterday about 11.00 CET the gethostbyaddr function doesn't seem
to be working. All I get is the IP address back. Is this something
general to all PHP users or is this specific to my server?

Just tested it on my localhost and it works so it must be a problem on
the server.

Does anyone know what was changed on the server to stop it working?

Thanks
Hi Christian,

gethostbyaddr() returns the original IP num if it cannot resolve it to a
hostname.
Did you by any chance change DNS settings?
Or is the machine itself the DNS server?

Also, if you didn't do so already, read all usercontributed notes at
php.net:
http://nl3.php.net/manual/en/function.gethostbyaddr.php

Good luck.
If you solve your problem, please post your findings here and/or at
www.php.net.

Regards,
Erwin Moller
Dec 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.