Re: Re: [chrony-users] Repeated 'refresh'es may cause excessive DNS queries |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: Re: [chrony-users] Repeated 'refresh'es may cause excessive DNS queries
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 13 Mar 2024 14:05:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710335110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ygBNhB4Cck6K3855yDlHdz/AHCjPiioE4VL3d8QQUY8=; b=dT2fDjGi60O8IWd7EflAdFdVDS7+Rav2XWMlCZs+jEzQxwUF3OJBwizRMtmOoefSDRf5Ky 18x8ixmp7DoqGC/jE83oMiDK8YqAqPQ+djhil/VwHm2Bv3aeeaMZ+u64q9raAZaxBqmamf W1leRQM8Ssl6vQ5HBfVpGhDwkASpRQA=
On Tue, Mar 12, 2024 at 05:35:06PM +0100, t.barnewski@xxxxxx wrote:
> > 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?
>
> I have attached the debug log after 4 refresh commands.
> chrony made about 320 DNS requests after those.
Ok, thanks.
I think I see what is happening now. The config specifies a pool which
means 4 servers by default. You override the real DNS record with a
single IPv4 server. IPv6 is disabled or unreachable. chronyd resolves
the name and gets only one working IP address. It doesn't remove the
name from the resolving queue in order to get the 3 missing addresses.
When you make the refresh command, the name of the unresolved sources
is added to the queue again, but that doesn't provide a new address,
so they stay there and the queue accumulates duplicated resolving
requests.
I'll fix that.
--
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.