Usage of Domain Set
To facilitate configuring domain names by collection, the domain set can be specified for configuration with /domain/. The specific method is:
-
Use
domain-setto configure the collection file, such as:domain-set -name ad -file /etc/smartdns/ad-list.confThe format of
ad-list.confis one domain per line, such as:ad.com site.com -
Use the domain set in the options with
/domain/configuration. Just set/domain/to/domain-set:[collection name]/, such as:address /domain-set:ad/# domain-rules /domain-set:ad/ -a # nameserver /domain-set:ad/server