[PATCH 1/1] busybox: make ntpd prefer IPv6 addresses

Christophe Prévotaux c.prevotaux at rural-networks.com
Thu Aug 18 11:59:10 UTC 2016


On Sun, 14 Aug 2016 01:25:44 +0200
Denys Vlasenko <vda.linux at googlemail.com> wrote:

> On Mon, Aug 8, 2016 at 11:17 AM, Christophe Prévotaux
> <c.prevotaux at rural-networks.com> wrote:
> > Hello,
> >
> > Could someone please integrate this patch in busybox please ?
> >
> > Please note I am not the author of this patch. But it is a very much needed
> > patch for people who have only ipv6 connectivity.
> >
> > https://dev.openwrt.org/attachment/ticket/12167/0001-busybox-make-ntpd-prefer-IPv6-addresses.patch  
> 
> 
> :ntpd uses host2sockaddr to get the first address returned by DNS and
> does so only once.
> :Since the first address is often an IPv4 address, this causes ntpd to
> fail in IPv6 only environments.
> 
> Fix either your DNS (or your IPv4 routing) then.
> If IPv4 doesn't work on your network, why do your DNS server
> responds with such addresses? Fixing each and every app
> to work around this is not feasible.

I do not think you understand the problem, maybe I did not explain it well
enough. I am using an IPv6 system and ntpd is bound to an IPv6 only
interface in my scenario, therefore in that case the DNS used does not
matter.

But even if I could fix all the DNSes of the planet and resolver, but don't
you think that what you are suggesting would also would break DNSSEC in a major
way hence I do not think , you proposed workaround is a correct one.

Even if my first proposed solution was incorrect, would it be possible to have
like a -6 flag on the ntpd of busybox to make it use only IPv6,  is that
something possible ? 

-- 
Christophe Prévotaux




More information about the busybox mailing list