Skip to content

check_dns: ai commit, add --attempts support - #463

Merged
inqrphl merged 2 commits into
mainfrom
check-dns-builtin-retry-packets
Sep 10, 2026
Merged

inqrphl merged 2 commits into
mainfrom
check-dns-builtin-retry-packets

Conversation

@inqrphl

@inqrphl inqrphl commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

it uses the same dns connection throught, but sends multiple packets if the proceeding packets do not get an answer. it uses connections WriteMsg, SetReadDeadline to add timeouts and ReadMsg with with error checks to see if timeouts were met.

timeout and attemps are now also read from resolv.conf if defined. attemps divide the query timeout into equal per UDP message timeouts.

this is implemented in the new exchangeWithRetries function

all combinations between hostCandidate x nameserver are checked using exchangeWithRetries function now instead of previous c.ExhangeContext

it uses the same dns connection throught, but sends multiple packets if the proceeding packets do not get an answer. it uses connections WriteMsg, SetReadDeadline to add timeouts and ReadMsg with with error checks to see if timeouts were met.

timeout and attemps are now also read from resolv.conf if defined. attemps divide the query timeout into equal per UDP message timeouts.

this is implemented in the new exchangeWithRetries function

all combinations between hostCandidate x nameserver are checked using exchangeWithRetries function now instead of previous c.ExhangeContext
Comment thread pkg/check_dns/check_dns.go Outdated
additionally fix German ist -> is in CriticalTimeout text
@inqrphl
inqrphl merged commit ebaef34 into main Sep 10, 2026
149 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants