From 7e8e554d9198d9a1580d5e971add16b0be57eb86 Mon Sep 17 00:00:00 2001 From: kissshot <4530897+kkkgo@users.noreply.github.com> Date: Fri, 3 Nov 2023 12:58:29 +0800 Subject: [PATCH] Update mosdns.yaml --- src/mosdns.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mosdns.yaml b/src/mosdns.yaml index a113dec..33da944 100644 --- a/src/mosdns.yaml +++ b/src/mosdns.yaml @@ -197,6 +197,14 @@ plugins: #global_mark_yes#autoforward-yes#autoforward-nocheck - exec: $force_forward #global_mark_yes#autoforward-no - exec: goto f_force_nocn_list + + - tag: accept_hosts + type: sequence + args: + - exec: $usehosts + - matches: has_wanted_ans + exec: goto accept + - tag: main_sequence type: sequence args: @@ -204,7 +212,7 @@ plugins: ##zones_qname_top_start## ##zones_qname_top_end## -#usehosts-yes - exec: $usehosts +#usehosts-yes - exec: jump accept_hosts - matches: "qtype 64 65" exec: pong END by block qtype 64/65.