The logs do not specify which DNS server is being connected to
Author: testing765Created Sep 28, 2026Updated Sep 28, 2026
Operating system
Windows
System version
11 (25H2)
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
1.14.2Description
Why aren't the logs showing which DNS server the connection is being made to? I'm using a simple config:
{
"log": {
"level": "trace"
},
"endpoints": [
{
"type": "wireguard",
"tag": "wg-out",
...
}
],
"inbounds": [
{
"type": "mixed",
"tag": "mixed-in",
"set_system_proxy": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"ip_is_private": true,
"outbound": "direct"
},
{
"inbound": "mixed-in",
"outbound": "wg-out"
}
],
"final": "direct",
"auto_detect_interface": true
}
}When trying to connect to the ntc.party host, which only has an IPv6 address, I get an NXDOMAIN error (see Logs) The system DNS server is set to 8.8.8.8, which resolves ntc.party without any errors. So the question is, which DNS server is actually being connected to? P.S. If I add a DNS block to the config explicitly specifying the 8.8.8.8 server, the error disappears:
"dns": {
"servers": [
{
"type": "https",
"server": "8.8.8.8",
}
],
},Reproduction
Any config and any loglevel
Logs
INFO[0015] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:58730
INFO[0015] inbound/mixed[mixed-in]: inbound connection to ntc.party:443
DEBUG[0015] router: match[1] inbound=mixed-in => route(wg-out)
INFO[0015] endpoint/wireguard[wg-out]: outbound connection to ntc.party:443
DEBUG[0015] dns: lookup domain ntc.party
DEBUG[0015] dns: exchanged ntc.party NXDOMAIN 0
DEBUG[0015] dns: exchanged ntc.party NXDOMAIN 0
ERROR[0015] dns: lookup failed for ntc.party: (exchange6: NXDOMAIN | exchange4: NXDOMAIN)
ERROR[0015] connection: open connection to ntc.party:443 using outbound/wireguard[wg-out]: lookup ntc.party: (exchange6: NXDOMAIN | exchange4: NXDOMAIN)
INFO[0015] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:49871
INFO[0015] inbound/mixed[mixed-in]: inbound connection to ntc.party:443
DEBUG[0015] router: match[1] inbound=mixed-in => route(wg-out)
INFO[0015] endpoint/wireguard[wg-out]: outbound connection to ntc.party:443
DEBUG[0015] dns: lookup domain ntc.party
DEBUG[0015] dns: exchanged ntc.party NXDOMAIN 0
DEBUG[0015] dns: exchanged ntc.party NXDOMAIN 0
ERROR[0015] dns: lookup failed for ntc.party: (exchange6: NXDOMAIN | exchange4: NXDOMAIN)
ERROR[0015] connection: open connection to ntc.party:443 using outbound/wireguard[wg-out]: lookup ntc.party: (exchange6: NXDOMAIN | exchange4: NXDOMAIN)Supporter
- I am a sponsor
Integrity requirements
- I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
Source: SagerNet/sing-box