Hi Grant,

> >>>>>> I've been experimenting recently, in version 0.71, with connman's 
> >>>>>> ability
> >>>>>> to
> >>>>>> launch the NTP daemon in one-shot mode when the service state 
> >>>>>> transitions
> >>>>>> to
> >>>>>> online mode.
> >>>>>> 
> >>>>>> However, what I notice in practice is that when the time server is any
> >>>>>> named
> >>>>>> entity (e.g. time.ubuntu.org or pool.ntp.org), the NTP daemon fails to
> >>>>>> resolve the name, ntpd_intres gets forked and launched and then
> >>>>>> indefinitely
> >>>>>> fails to resolve the name.
> >>>> 
> >>>> At this point, my next step may be to try calling the connman
> >>>> g_resolve_lookup_hostname while building the temporary configuration peer
> >>>> list.
> >>> 
> >>> Try to have ConnMan resolve the name before calling the ntpd one-shot
> >>> command line and give the IP address to that one. I am curious if that
> >>> would work.
> >> 
> >> As suggested above, if I set up a new gresolv instance and call
> >> g_resolv_lookup_hostname from ntpdate_add_peer, it works consistently (see
> >> output below). Would you like a patch for this?
> > 
> > as a short term solution, I am fine with trying to resolve the IP
> > address before calling ntpd. Just keep in mind that you need to check if
> > the server name might be already an IP address.
> 
> I didn't bother special casing this as it just worked. The resolver simply 
> returns immediately with the IP address and I add it to the peer file.
> 
> > In case of DHCP it is possible that it hands out IP addresses directly.
> 
> Confirmed. I tested exactly that case.

just send a patch for this and either Samuel or I will review it.

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to