smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

能否把server的一些功能上放到bind端口,如-blacklist-ip和-whitelist-ip

Open 4thanks opened this issue 3 years ago • 0 comments

发现配置server 分组可以有多个group https://github.com/pymumu/smartdns/blob/1f1fd118de44b145f558c1b2025e24819546cc2a/etc/smartdns/smartdns.conf#L165 一般分流都是bind分别绑定端口,但IP 过滤结果又不能在bind设置有点尬尴。 比如想用某个dns同时解析国内外域名,但解析国外域名不想返回或过滤国内IP或污染IP,就得设置两个同样server,如果server越多,重复得越多。

bind :7053 -group cn
bind :7054 -group out

server 119.29.29.29 -group cn
server 119.29.29.29 -group out -blacklist-ip -exclude-default-group

nameserver /www.example.cn/cn
nameserver /www.example.com/out

如果在bind端口就会简洁方便些

bind :7053 -group cn
bind :7054 -group out -blacklist-ip

server 119.29.29.29 -group cn -group out

nameserver /www.example.cn/cn
nameserver /www.example.com/out

4thanks avatar Sep 14 '22 05:09 4thanks