[GH-ISSUE #172] Getting backtraces when remote DNS servers replies with NXDOMAIN #72

Closed
opened 2026-02-26 04:33:57 +03:00 by kerem · 1 comment
Owner

Originally created by @selurvedu on GitHub (Dec 17, 2019).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/172

What is Happening

  • NXDOMAIN answer from a remote DNS server produces a stack trace on INFO log level
  • DPS itself does not return an NXDOMAIN answer, nslookup reports "No answer" instead
  • See the log file for a backtrace: dps-issue-172.log

What is expected

  • The backtrace should not appear in logs (at least on INFO log level)
  • DPS should forward the NXDOMAIN answer of the remote DNS server

Steps to Reproduce

172.20.0.2 is the IP address of DPS

$ nslookup asdasdsadasdas.com 9.9.9.9
Server:         9.9.9.9
Address:        9.9.9.9#53

** server can't find asdasdsadasdas.com: NXDOMAIN

$ nslookup asdasdsadasdas.com 172.20.0.2
Server:         172.20.0.2
Address:        172.20.0.2#53

Non-authoritative answer:
*** Can't find asdasdsadasdas.com: No answer

Specs:

  • OS: The official image of DPS on Docker Hub uses Debian GNU/Linux 10 (buster)
  • Docker Version: 19.03.4-ce
  • DPS Version: 2.18.2
Originally created by @selurvedu on GitHub (Dec 17, 2019). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/172 ### What is Happening * NXDOMAIN answer from a remote DNS server produces a stack trace on INFO log level * DPS itself does not return an NXDOMAIN answer, `nslookup` reports "No answer" instead * See the log file for a backtrace: [dps-issue-172.log](https://github.com/mageddo/dns-proxy-server/files/3974182/dps-issue-172.log) ### What is expected * The backtrace should not appear in logs (at least on INFO log level) * DPS should forward the NXDOMAIN answer of the remote DNS server ### Steps to Reproduce 172.20.0.2 is the IP address of DPS ``` $ nslookup asdasdsadasdas.com 9.9.9.9 Server: 9.9.9.9 Address: 9.9.9.9#53 ** server can't find asdasdsadasdas.com: NXDOMAIN $ nslookup asdasdsadasdas.com 172.20.0.2 Server: 172.20.0.2 Address: 172.20.0.2#53 Non-authoritative answer: *** Can't find asdasdsadasdas.com: No answer ``` **Specs:** - OS: The official image of DPS on Docker Hub uses Debian GNU/Linux 10 (buster) - Docker Version: 19.03.4-ce - DPS Version: 2.18.2
kerem 2026-02-26 04:33:57 +03:00
Author
Owner

@mageddo commented on GitHub (Jan 3, 2020):

Yep, I confirmed it today, not sure yet what caused, it is generating a LOT of stacktraces. Thanks for the report @selurvedu

<!-- gh-comment-id:570658564 --> @mageddo commented on GitHub (Jan 3, 2020): Yep, I confirmed it today, not sure yet what caused, it is generating a LOT of stacktraces. Thanks for the report @selurvedu
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#72
No description provided.