Fix internal cache TTL computation for dnsx responses #209
+81
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Internal cache lookups for A/AAAA returned valid IPs but reported zero TTL in logs, causing misleading negative/zero “until” values.
minNonZeroDurationto avoid zeroing TTL when one of the durations is unset.Example:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
149.112.112.12/tmp/go-build1865339687/b362/dnscrypt.test /tmp/go-build1865339687/b362/dnscrypt.test -test.testlogfile=/tmp/go-build1865339687/b362/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b253/vet.cfg g_.a 0.1-go1.25.0.lingvisor.dev/gvisor/pkg/tcpip/network/internal/multicast ux-amd64/pkg/tool/linux_amd64/vet(packet block)api2.sec-tunnel.com/tmp/go-build1865339687/b359/dns53.test /tmp/go-build1865339687/b359/dns53.test -test.testlogfile=/tmp/go-build1865339687/b359/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b244/vet.cfg(dns block)cloudflare.com/tmp/go-build1865339687/b359/dns53.test /tmp/go-build1865339687/b359/dns53.test -test.testlogfile=/tmp/go-build1865339687/b359/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b244/vet.cfg(dns block)dns.google/tmp/go-build1865339687/b371/multihost.test /tmp/go-build1865339687/b371/multihost.test -test.testlogfile=/tmp/go-build1865339687/b371/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b274/vet.cfg g_.a(dns block)foo.test/tmp/go-build1865339687/b382/protect.test /tmp/go-build1865339687/b382/protect.test -test.testlogfile=/tmp/go-build1865339687/b382/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b256/vet.cfg(dns block)google.com/tmp/go-build1865339687/b359/dns53.test /tmp/go-build1865339687/b359/dns53.test -test.testlogfile=/tmp/go-build1865339687/b359/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b244/vet.cfg(dns block)microsoft.com/tmp/go-build1865339687/b359/dns53.test /tmp/go-build1865339687/b359/dns53.test -test.testlogfile=/tmp/go-build1865339687/b359/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b244/vet.cfg(dns block)one.one.one.one/tmp/go-build1865339687/b371/multihost.test /tmp/go-build1865339687/b371/multihost.test -test.testlogfile=/tmp/go-build1865339687/b371/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build1865339687/b274/vet.cfg g_.a(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.