gethostbyaddr and IPv6

From: Date: Sat, 22 Nov 2008 01:49:32 +0000
Subject: gethostbyaddr and IPv6
Groups: php.general 
Request: Send a blank email to php-general+get-283643@lists.php.net to get a copy of this message
Hello, Does gethostbyaddr actually work for anyone while looking up an IPv6 address? I can't seem to get it to work. For example: echo gethostbyaddr ( '2001:470:0:64::2' ); should return "ipv6.he.net" but instead I get the following error: [21-Nov-2008 22:43:37] PHP Warning: gethostbyaddr() [<a href='function.gethostbyaddr'>function.gethostbyaddr</a>]: Address is not in a.b.c.d form in C:\www\tests\saved\host.php on line 7 Google has not been my friend in this matter... Any insight? Thanks, Glen

« previous php.general (#283643) next »