[ntp:questions] Testing IPv6 code

Charles Elliott elliott.ch at comcast.net
Wed Jan 18 12:53:24 UTC 2017


Time-d.nist.gov serves time from 2610:20:6F15:15::27; I know that because I
use it, but 

7:38 Wed 01/18>nslookup 2610:20:6F15:15::27 127.0.0.1
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find
7.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.1.0.0.5.1.f.6.0.2.0.0.0.1.6.2.ip6.arpa:
NXDOMAI

Scott could try turning off automatic DNS name resolution from external
servers and put the addresses he needs in the hosts file.  That works with
time servers that no longer publish their IP addresses.

Charles Elliott

-----Original Message-----
From: questions
[mailto:questions-bounces+elliott.ch=comcast.net at lists.ntp.org] On Behalf Of
Dan Geist
Sent: Tuesday, January 17, 2017 10:40 AM
To: Robert Scott
Cc: questions
Subject: Re: [ntp:questions] Testing IPv6 code

Robert, that host doesn't look to have a v6 record:

[dan at 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 at notreal.invalid>
> To: "questions" <questions at 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 at lists.ntp.org
> http://lists.ntp.org/listinfo/questions

--
Dan Geist dan(@)polter.net
_______________________________________________
questions mailing list
questions at lists.ntp.org
http://lists.ntp.org/listinfo/questions



More information about the questions mailing list