dig shows dns addr from my icp instead of dns in smartdns config file #1898
DroidProger
started this conversation in
General
Replies: 1 comment 2 replies
-
it seems smartdns work fine if you don't specify a server in dig, it will use the system default configuration ---- which depends on your os, not the smartdns please check who is listening on port 53, use netstat or something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I try to replace dnsmasq with smartdns.
I write in config file some dns addresses, run service "sudo systemctl start smartdns", it's started without errors, but dig and nslookup shows my icp dns address.
In config:
bind :53 (or [::]:53 - same result)
bind-tcp :53 (or [::]:53 - same result)
server 208.67.222.222
server 94.140.14.14
server-tls 1.1.1.1
server-https https://dns.google/dns-query
I'll try force-AAAA-SOA yes or no, but it has no result.
In /etc/default/smartdns
SMART_DNS_OPTS= -c /etc/smartdns/smartdns.conf
in logs i see this
2025-01-13 09:17:14,355][ INFO][ dns_client.c:1272] add server 208.67.222.222:53, type: udp
[2025-01-13 09:17:14,355][ INFO][ dns_client.c:1272] add server 94.140.14.14:53, type: udp
[2025-01-13 09:17:14,432][ INFO][ dns_client.c:1272] add server 1.1.1.1:853, type: tls
[2025-01-13 09:17:14,432][ INFO][ dns_client.c:1522] add pending server dns.google
and this
[2025-01-13 09:17:42,207][ INFO][ dns_server.c:4500] result: x.com, client: 192.168.0.2, qtype: 1, id: 11473, group: default, time: 0ms
[2025-01-13 09:17:45,357][ INFO][ dns_server.c:4500] result: www.facebook.com, client: 192.168.0.2, qtype: 1, id: 57442, group: default, time: 1ms
[2025-01-13 09:17:48,510][ INFO][ dns_server.c:4500] result: instagram.com, client: 192.168.0.2, qtype: 1, id: 57753, group: default, time: 0ms
It seems smartdns work
In /etc/resolv.conf only
nameserver 127.0.0.1
What am i missing in config?
Beta Was this translation helpful? Give feedback.
All reactions