On Tue, 18 Jun 2002, Michael H. Warfield wrote:
] [mhw(_at_)chaos mhw]$ fetchmail
] fetchmail: No mail for mhw at email.iss.net
] fetchmail: couldn't find canonical DNS name of alcove.ip6.wittsend.com
] fetchmail: Query status=11 (DNS)
] [mhw(_at_)chaos mhw]$ host alcove.ip6.wittsend.com
] Host alcove.ip6.wittsend.com not found: 2(SERVFAIL)
] [mhw(_at_)chaos mhw]$ host -t AAAA alcove.ip6.wittsend.com
] alcove.ip6.wittsend.com has AAAA address
3ffe:b80:c84:8200:2a0:24ff:feda:d2f3
Now that gets us somewhere. If you look at the source code, driver.c:
fetchmail uses gethostbyname, but gethostbyname only supports IPv4. For
IPv6 support, I'd suggest getaddrinfo, but that's not available on older
systems, so the existing code should be kept for machines without IPv6.