tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Disabling AAAA dns lookups in NetBSD



On 26 August 2013 10:29, Lloyd Parkes <lloyd%must-have-coffee.gen.nz@localhost> 
wrote:
>
> On 26/08/2013, at 9:03 PM, David Brownlee <abs%absd.org@localhost> wrote:
>
>> I'm attempting to use a perl script which calls Mail::IMAPClient to
>> connect to google (which has both IPv4 and IPv6). Obviously NetBSD
>> picks up the IPv6 address first, and then fails with "No route to
>> host".
>> ...
>> Short of compiling a custom kernel, how would I do one of the following?
>> - disable AAAA lookup
>> - prefer A lookup to AAAA
>> - disable all IPv6 activity on the system
>
> You could also fix Mail::IMAPClient so that it does the right thing. It is 
> almost certainly using a library call that returns a list of IP addresses and 
> the code just needs adjusting to try each IP address until a successful 
> connection is made. That's what I make my programs do and it is the modern 
> way of using gethostbyname(3) (in as much as using gethostbyname(3) could be 
> said to be modern).

OK, so I'll take a look at fixing Mail::IMAPClient. Would someone like
to take a look at subversion - which has similar issues...


Home | Main Index | Thread Index | Old Index