7 Aug
2012
7 Aug
'12
6:47 p.m.
Hi,
On 7 aug. 2012, at 18:39, Adam Armstrong wrote:
This is because of a php call which doens't play nice with IPv6, IIRC.
I forget which one exactly, gethostbyname()?
gethostbyname indeed does not support IPv6. Maybe a change to the code ensures that observium first tries gethostbyname and if that fails tries something along the lines of:
job@miriel:~$ php <? print_r(dns_get_record("pi2.meerval.net", DNS_AAAA)); ?> Array ( [0] => Array ( [host] => pi2.meerval.net [type] => AAAA [ipv6] => 2001:67c:208c:10:821f:2ff:fe4b:3932 [class] => IN [ttl] => 5 )
) job@miriel:~$
Kind regards,
- Job