mokeyish / smartdns-rs

A cross platform local DNS server (Dnsmasq like) written in rust to obtain the fastest website IP for the best Internet experience, supports DoT, DoQ, DoH, DoH3.
GNU General Public License v3.0
569 stars 39 forks source link

domain-set 不生效 #332

Closed PhoenixTrees closed 2 months ago

PhoenixTrees commented 2 months ago

配置如下

PhoenixTrees commented 2 months ago

server-name smartdns

speed-check-mode ping,tcp:80,tcp:443

bind 127.0.0.1:53 -force-aaaa-soa

cache-size 32768 cache-persist yes cache-file D:\data\cache\smartdns\smartdns.cache

force-qtype-SOA 65

dualstack-ip-selection no

log-level debug log-file D:\data\log\smartdns\smartdns.log log-size 10240k

server 223.5.5.5 -bootstrap-dns -exclude-default-group

server-https https://doh.pub/dns-query -group domestic server 114.114.114.114 -group domestic server-https https://dns.alidns.com/dns-query -group domestic server 180.76.76.76 -group domestic server 202.96.209.133 -group domestic server 116.228.111.118 -group domestic server 210.22.70.3 -group domestic server-tls dot.360.cn -group domestic server 1.2.4.8 -group domestic server-https https://dns.twnic.tw/dns-query -group domestic server 210.22.84.3 -group domestic

oversea

server-https https://dns.google/dns-query -group oversea -exclude-default-group server-https https://cloudflare-dns.com/dns-query -group oversea -exclude-default-group server-https https://dns.quad9.net/dns-query -group oversea -exclude-default-group server-https https://public.dns.iij.jp/dns-query -group oversea -exclude-default-group

lan

server 10.1.1.254

domain-set -n proxy -f C:\Users\kehuduan\Document\proxy.domin domain-rules /domain-set:proxy/ -nameserver oversea -speed-check-mode none

PhoenixTrees commented 2 months ago

proxy.txt image log.txt

PhoenixTrees commented 2 months ago

是我哪里配置出问题了吗?我从openwrt上面的配置抄过来的,顺便可以再日志里面加一下生效的domain-set和domain-rules,方便排查问题吗?

mokeyish commented 2 months ago

你在 linux 上试过吗?看着好像是 windows 路径解析的问题?

我用 windows 比较少。更多是用 MacOS 和 Linux。

PhoenixTrees commented 2 months ago

你在 linux 上试过吗?看着好像是 windows 路径解析的问题?

我用 windows 比较少。更多是用 MacOS 和 Linux。

没有只在windows用过,而且我翻了翻之前的issue,发现您的回复说 -h + url 也支持,我也试了下,没有成功 不知道是哪里的问题

mokeyish commented 2 months ago

image

无法重现

PhoenixTrees commented 2 months ago

image

无法重现

我把文件放到d盘也好了, 可能是我之前放的路径有问题? 感谢回复