Re: [chrony-users] chronyc "add server FQDN" delayed name resolving

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Tue, Jan 22, 2019 at 02:07:59PM +0100, Wolfgang Steinwender wrote:
> When using "server FQDN" in the configuration file, chronyd
> will keep trying to resolve the FQDN in an increasing interval
> until it succeeds.
> 
> When using "add server FQDN" with chronyc, the server is rejected
> if the name can not be resolved immediately:
> if (DNS_Name2IPAddress(data.name, &ip_addr, 1) != DNS_Success) {
>     LOG(LOGS_ERR, "Invalid host/IP address");
>     break;
> }
> 
> Is there any change to get delayed name resolving for chronyc?

The chronyd/chronyc protocol needs to be extended to pass the hostname
instead of the IP address. This will also enable a "add pool" command. 

One issue is, how this server-side resolving should be specified. An
idea I had was to use quotes, e.g.

chronyc 'add server "foo.example.net"'

There could be also a new command, or a new option of the existing
command. I'm not sure what's better.

-- 
Miroslav Lichvar

-- 
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/