Cisco-Talos / cvdupdate

ClamAV Private Database Mirror Updater Tool
Apache License 2.0
93 stars 35 forks source link

Retries for DNS query? #49

Closed backbord closed 1 year ago

backbord commented 2 years ago

Hi,

I occasionally see the following message in my logs and noticed, that _query_cvd_version_http uses the retries whereas _query_cvd_version_dns does not, if I read the source correctly.

Would it be possible to add retries for the DNS query as well?

Thanks! Tim

2022-08-26 09:24:14 cvdupdate-1.1.1 DEBUG Checking for a newer version of cvdupdate.
2022-08-26 09:24:16 cvdupdate-1.1.1 DEBUG cvdupdate is up-to-date: 1.1.1.
2022-08-26 09:24:16 cvdupdate-1.1.1 DEBUG Checking available versions via DNS TXT entry query of current.cvd.clamav.net
2022-08-26 09:24:16 cvdupdate-1.1.1 INFO Using system configured nameservers
2022-08-26 09:24:21 cvdupdate-1.1.1 DEBUG EXCEPTION OCCURRED: The resolution lifetime expired after 5.007 seconds: Server 172.24.8.8 UDP port 53 answered The DNS operation timed out.
2022-08-26 09:24:21 cvdupdate-1.1.1 WARNING Failed to determine available version via DNS TXT query!
2022-08-26 09:24:21 cvdupdate-1.1.1 ERROR Failed to update: DNS query failed.