What is the purpose of usage-statistics.resolver.timeout in usage-statistics.cfg and how to disable dns queries

57 views
Skip to first unread message

Bauermeister

unread,
Mar 18, 2025, 9:18:30 AM3/18/25
to DSpace Community
Hi everyone,
I’ve been exploring the configuration settings in DSpace 7 and came across the usage-statistics.resolver.timeout setting in the usage-statistics.cfg file. I’m trying to understand its purpose, specifically in terms of DNS queries.
Maybe someone has encountered the same setting and has figured out one of the following:

What exactly is dns resolving regarding the usage statistics used for?
Does setting usage-statistics.resolver.timeout to 0 completely disable DNS queries, or is there maybe another way to disable them altogether?
If I set it to 0 (or disable them), will it break any functionality related to usage statistics (like maybe bot detection etc)
Has anyone experience with this configuration or encountered similar issues?

The reason I want to disable these DNS queries is that I’ve been noticing DNS requests to blocked sites, which appear to be part of the DNS queries DSpace is making. This is a concern because these queries are being logged on our DNS RPZ server, but I think Dspace should not be able to try to resolve these queries in the first place. This kind of query traffic waters down the integrity of our DNS security logs, as it could obscure actual security threats that are trying to resolve.

Thanks in advance!

DSpace Community

unread,
Apr 7, 2025, 11:02:05 AM4/7/25
to DSpace Community
Hi,

I checked the code, and the "usage-statistics.resolver.timeout" setting only appears to be used when importing a Statistical backup (the "solr-import-statistics" command) and when updating the spider IP files (the "stats-util" command).  It does not appear to be used during actual statistics gathering or bot detection or similar. 

I don't know the answer to your other question about "DNS queries" as it's unclear to me what queries you might be talking about.  I think we'd need more information on the behavior you are seeing (with some possible examples or similar), as I don't understand myself what DNS queries you are asking about.

Tim

Abdellah Adghar

unread,
Apr 8, 2025, 10:28:39 AM4/8/25
to DSpace Community
root@ns1:/dspace/bin# ./dspace solr-export-statistics
No index name provided, defaulting to "statistics".
root@ns1:/dspace/bin# 
Reply all
Reply to author
Forward
0 new messages