Re: [chrony-users] Repeated 'refresh'es may cause excessive DNS queries

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


On Tue, Mar 12, 2024 at 04:35:59PM +0100, t.barnewski@xxxxxx wrote:
> STEPS TO REPRODUCE:
> 1) Install a DNS server on machine A (can also be a VM) and configure it to
> always reply with a TTL of 0 for certain domains. This can be accomplished with
> dnsmasq and a hardcoded entry in /etc/hosts for, say, 2.europe.pool.ntp.org:
> 
>     > cat /etc/hosts
>     # HACK for testing: use ptbtime1.ptb.de as source
>     192.53.103.108   2.europe.pool.ntp.org
>     [snip]
> 
> 2) On machine B, point the local DNS resolver to machine A.
> Install chrony and configure it to use only the source from step 1.
> 
>     > cat /etc/chrony/chrony.conf
>     pool 2.europe.pool.ntp.org minpoll 10 iburst
>     [snip]
> 
> 3) Repeatedly issue "chronyc refresh" commands on machine B and watch the sparks
> (and the DNS queries) fly.

That seems to be working for me as expected. I see one request per
refresh. Can you please build chronyd with --enable-debug and post the
chronyd -dd output for first few refresh commands?

-- 
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/