Skip to content

DNS Rewrite intermittent SERVFAIL, caching issue #7747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
tescophil opened this issue Apr 4, 2025 · 1 comment
Open
4 tasks done

DNS Rewrite intermittent SERVFAIL, caching issue #7747

tescophil opened this issue Apr 4, 2025 · 1 comment

Comments

@tescophil
Copy link

tescophil commented Apr 4, 2025

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.59

Action

DNS rewrites result in intermittent SERVFAIL return code due to multiple entries in cache (looks like ?) for the same domain.

Expected result

I expect to see one cached entry for each domain, this looks like they're are multiple entries. Also if a query returns SERVFAIL then DON'T cache it as it may be a temporary failure which is then persisted in the cache.

Actual result

Query returns with SERVFAIL

Additional information and/or screenshots

Here are two queries a couple of milliseconds apart, cached responses from different servers (which I don't understand) one responds SERVFAIL and the other NOERROR

Time
07:40:45.441
Date
04/04/2025
Status
Rewritten
Domain
diag.meethue.com
Type
AAAA
Protocol
Plain DNS
Response details
DNS server
https://doh.opendns.com:443/dns-query
Served from cache
Elapsed
0.28 ms
Rule(s)
/^diag.meethue.com/$important,dnsrewrite=xxxxx.duckdns.org
Custom filtering rules
Response
CNAME: xxxxx.duckdns.org. (ttl=3600)
Response code
SERVFAIL

Time
07:40:45.443
Date
04/04/2025
Status
Rewritten
Domain
diag.meethue.com
Type
AAAA
Protocol
Plain DNS
Response details
DNS server
https://cloudflare-dns.com:443/dns-query
Served from cache
Elapsed
0.28 ms
Rule(s)
/^diag.meethue.com/$important,dnsrewrite=xxxxx.duckdns.org
Custom filtering rules
Response
CNAME: xxxxx.duckdns.org. (ttl=3600)
Response code
NOERROR

@comio
Copy link

comio commented Apr 30, 2025

I have sporadic resolution fails on another xxx.duckdns.org address (used by ddns client). Very strange.

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

No branches or pull requests

2 participants