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

Denys Vlasenko vda.linux at googlemail.com
Sat Aug 13 23:25:44 UTC 2016


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.


More information about the busybox mailing list