[snip] ... I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged.
Anybody know why this might be? [snip]
I'm just answering your question why they can't be pinged.
You are perfectly right that 'gethostbyname($hostname) has nothing to do with pings as a matter of fact' and then I just wonder why do you try to resolve your gethostname() problem by pinging the hosts, if you know what the answer is.
Possible reason for the problem could be that your DNS provider doesn't have a record in its database for the domain name you try to resolve. Solution - try to find a script (I have such class but written in Delphi) with functionality similar to nslookup so to be able to define another DNS server for the resolving query. This script should also be able to send queries to more than one DNS server if you wish to minimize the amount of the domains unresolved.
Or change your DNS provider with another one more reliable.
HTH
Boyan --
Dan Anderson wrote:
the firewall is configured to block pings from outside - security reasons - so called stealth mode
No, you are wrong. gethostbyname($hostname) correctly resolves my
servers, and I have disabled pings for security reasons. gethostbyname($hostname) has nothing to do with pings as a matter of
fact. It performs a whois lookup and returns the ip address of
$hostname.
-Dan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php