mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #611] Bug: Getting NXDOMAIN when not expected #199
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mageddo on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/611
Reported at #478
What is Happening
DPS solvers are forwarding the hostname query to remote solver even when the hostname exists at the dps solvers but haven´t an IP to be answered, then it causes a NXDOMAIN answer got from the remote solver or by the
MG_NO_ENTRIES_RESPONSE_CODEwhen no remote solver could be used.What is Expected
As explained by @aricooperdavis (ref), following the RFCs, the expected behavior would be:
@cmiguelcabral commented on GitHub (Dec 19, 2025):
I already commented in the original issue, but let me give an example about what I wrote there:
With IPv6 disabled:
With IPv6 enabled:
It doesn't seem to be related to upstream servers as suggested because I have the same behavior with or without upstream servers configured.
@mageddo commented on GitHub (Dec 19, 2025):
@cmiguelcabral
It occurs because NSLOOKUP is asking both IPV4 and IPV6 to DPS into two separate queries, as DPS has not an IPV6 to answer then it responds error code 3 (which is not expected because the hostname exists, even only with ipv4 addresses), then nslookup consider that the process has errors.
The only workaround is to stop asking IPV6 addresses to DPS
That's a simple issue to fix on DPS, hope to fix it in the next days.
@cmiguelcabral commented on GitHub (Dec 20, 2025):
That would be great.
Nginx doesn't seem to handle well the way dps is working now.
The truth is that dnsmasq doesn't do the same thing, if there is no IPv6, it just responds the IPv4.
@mageddo commented on GitHub (Dec 24, 2025):
5.6.1 is out, appreciate feedback, thanks in advance.
@cmiguelcabral commented on GitHub (Dec 25, 2025):
Working perfectly!
Thank you very much for all your work!!