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

Re: Mass ipv6 lookups



In article <[🔎] 20020927162513.GI9346@noname.franken.de> (at Fri, 27 Sep 2002 18:25:13 +0200), Michael Bergbauer <michael@noname.franken.de> says:

> Sorry for asking a potentially stupid question, but how do you ask the
> resolver to query AAAA records or not to do it? I e.g. see my telnet
> program doing AAAA-Queries (watched with a sniffer) and in the sources, I
> can only see gethostbyname() calls.
> 
> Is there somewhere a switch to turn on/off looking up AAAA records?
> Perhaps Ramon is just looking for something like that.

I think that most of them uses getaddrinfo().
it usually lookups both "AAAA" and "A".
some have -4 option to lookup only "A".

Well... AI_ADDRCONFIG flag for getaddrinfo() could be an answer,
but it is not implemented yet in glibc.

--yoshfuji



Reply to: