域名集合的使用
为方便按集合配置域名,对于有/domain/的配置,可以指定域名集合,方便维护。具体方法为:
-
使用
domain-set配置集合文件,如domain-set -name ad -file /etc/smartdns/ad-list.confad-list.conf的格式为一个域名一行,如
ad.com site.com -
在有/domain/配置的选项使用域名集合,只需要将
/domain/配置为/domain-set:[集合名称]/即可,如:address /domain-set:ad/# domain-rules /domain-set:ad/ -a # nameserver /domain-set:ad/server