> Date: Tue, 24 Oct 2017 10:00:44 -0700 > From: 神明達哉 <jin...@wide.ad.jp> > > I suspect there's some misunderstanding. To be sure that we talk > about the same thing, please let me ask you to have some experiment: > > - compile the pasted code below and name the executable, say, 'gai' > - run the program as follows: > % RES_OPTIONS=debug 2001:db8::1234 > - also try this: > % RES_OPTIONS=debug www.netbsd.org
FYI, we have a program in base that will do this now, called getaddrinfo(1). The following should do the same thing: getaddrinfo -f inet6 2001:db8::1234