Robert, that host doesn't look to have a v6 record: [dan@shell ~]$ host time-d.nist.gov time-d.nist.gov has address 129.6.15.27
Obviously, you're getting the ipv4 address correctly, though. Here's a good primer on IPv6 application porting: http://long.ccaba.upc.edu/long/045Guidelines/eva/ipv6.html Dan ----- Original Message ----- > From: "Robert Scott" <no-one@notreal.invalid> > To: "questions" <questions@lists.ntp.org> > Sent: Tuesday, January 17, 2017 10:25:17 AM > Subject: Re: [ntp:questions] Testing IPv6 code > Perhaps the problem is with my understanding of socket coding. I > found "time-d.nist.gov" that is supposed to have an IPv6 address of > 2610:20:6F15:15::27, but when I get its address info, it always says > IPv4, 129:6:15:27. I see the 15 and 27, so there is some translation > going on that I don't understand. My getaddrinfo is apparently > returning the IPv4 mapped equivalent. Does anyone know how to force > just IPv6 addresses? > > -Robert Scott > Hopkins, MN > > _______________________________________________ > questions mailing list > questions@lists.ntp.org > http://lists.ntp.org/listinfo/questions -- Dan Geist dan(@)polter.net _______________________________________________ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions