internal functions with ipv6 support
Description
php has some built in functions e.g. gethostbyname which only allow to get the ipv4 address. There is no function / option to get the ipv6 address, or maybe both at a time.
The web is (slowly) moving towards ipv6, so php should support ipv6 addresses as well and have functions returning them.
https://www.php.net/manual/en/function.dns-get-record.php
@adesysmarc: thanks for that hint, but this is quite "bare". You need to implement/know how to e.g. handle CNAME etc. You don't just get (all) resulting IP-adresses.
found the solution:
dns_get_record('HOSTNAME', DNS_A|DNS_AAAA)
Maybe a hint in the docu of gethostbyname should be added...