diff --git a/root/etc/mosdns/cus_config.yaml b/root/etc/mosdns/cus_config.yaml index 5e75b79..db9d6be 100644 --- a/root/etc/mosdns/cus_config.yaml +++ b/root/etc/mosdns/cus_config.yaml @@ -93,4 +93,4 @@ plugin: type: query_matcher args: domain: - - "ext:./serverlist.txt" + - "ext:/usr/share/v2ray/geosite.dat:category-ads-all" diff --git a/root/etc/mosdns/def_config.yaml b/root/etc/mosdns/def_config.yaml index 46b6657..30b2b2d 100644 --- a/root/etc/mosdns/def_config.yaml +++ b/root/etc/mosdns/def_config.yaml @@ -22,12 +22,6 @@ plugin: type: sequence args: exec: - - if: - - query_is_ad_domain - - qtype65 - exec: - - _block_with_nxdomain - - _return - if: - query_is_whitelist_domain - query_is_local_domain @@ -35,6 +29,11 @@ plugin: exec: - forward_local - _return + - if: + - query_is_ad_domain + exec: + - _block_with_nxdomain + - _return - if: - query_is_non_local_domain exec: @@ -100,8 +99,3 @@ plugin: args: domain: - ${{ ./ad_domain.sh }} - - - tag: qtype65 - type: query_matcher - args: - qtype: [65]