473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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

Dec 6 '06 #1
2 3075
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: CPD | last post by:
I can't parse $_SERVER when using the alphabetic key instead of the numeric index of the array. Below is some of the line-numbered code, followed by the corresponding output. For this posting, IP...
1
by: Mohammed Smadi | last post by:
hi; I am trying to do some very basic socket programming and i get the following error. Any help will be appreciated: Code: import socket x = socket.gethostbyaddr("www.google.ca") return...
2
by: Neil Aggarwal | last post by:
Hello: I am using gcc on RedHat Linux 9. When I try to do a reverse dns query using gethostbyaddr, it works fine for hosts that have a PTR record, but it returns null for hosts that have a...
2
by: Harlin Seritt | last post by:
I have a list of IP addresses I am testing with socket.gethostbyaddr(). For the most part, I am able to get a hostname returned to me when I run gethostbyaddr(). I am also hoping this will allow me...
0
by: Jørn Dahl-Stamnes | last post by:
I have a PHP script which contain the following code: $hostname = gethostbyaddr ($ip); Until yesterday, the gethostbyaddr returned the hostname of the given IP-addresse. But yesterday it began...
11
by: P | last post by:
Hi all, I have compiled a C application (japach: http://www.jikos.cz/jikos/japach/) under cygwin on Windows NT. It works fine on all versions of win32. When I ran it on Windows x64, it hangs...
1
by: shailesh | last post by:
Hi, I am facing a peculiar problem. socket.gethostbyaddr is not working fine on my MAC for ip addresses on the LAN. The LAN happens to consist of linux and windows machines and this is the only...
1
by: lakshmiraja | last post by:
hi, I came to know that gethostbyaddr is deprecated in Visual Studio 2005 by the introduction of getnameinfo function. Can i know the reason for the deprecation of gethostbyaddr function. Is...
24
by: RJ_32 | last post by:
When there is no rDNS record on an IP address, then it might take a while for the reverse lookup to timeout. I'm thinking of how on a tracert you can observe the delay. If so, then calling...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.