Re: Re: Repeated 'refresh'es may cause excessive DNS queries

Miroslav Lichvar <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <ZfGkgu3erLr7nClu@localhost>
On Tue, Mar 12, 2024 at 05:35:06PM +0100, [email protected] 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-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.