Problem with gethostbyaddr

This is a discussion on Problem with gethostbyaddr within the PHP Language forums, part of the PHP Programming Forums category; Hi Since yesterday about 11.00 CET the gethostbyaddr function doesn't seem to be working. All I get is ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-06-2006
christian9997@hotmail.com
 
Posts: n/a
Default Problem with gethostbyaddr

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

Reply With Quote
  #2 (permalink)  
Old 12-06-2006
christian9997@hotmail.com
 
Posts: n/a
Default Re: Problem with gethostbyaddr

christian9997@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

Reply With Quote
  #3 (permalink)  
Old 12-06-2006
Erwin Moller
 
Posts: n/a
Default Re: Problem with gethostbyaddr

christian9997@hotmail.com wrote:

> christian9997@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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0