-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iioluci-app-ssr-plus: add mosdns support (#1298)
* [DNS] Add mosdns support Signed-off-by: Xiaoli Chan * [DNS] Add mosdns in luci app makefile Signed-off-by: Xiaoli Chan * [DNS] self review Signed-off-by: Xiaoli Chan * [DNS] enable MosDNS features Signed-off-by: Xiaoli Chan * [MosDNS] Less file Signed-off-by: Xiaoli Chan * [SSRP] Beginner: review I Signed-off-by: Xiaoli Chan * Fix dns issues Signed-off-by: Xiaoli Chan
- Loading branch information
1 parent
7c72ca6
commit 78f44fd
Showing
8 changed files
with
200 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
log: | ||
level: info | ||
plugins: | ||
- tag: lazy_cache | ||
type: cache | ||
args: | ||
size: 8000 | ||
lazy_cache_ttl: 86400 | ||
|
||
- tag: forward_google | ||
type: forward | ||
args: | ||
concurrent: 2 | ||
upstreams: | ||
|
||
- tag: main_sequence_disable_IPv6 | ||
type: sequence | ||
args: | ||
- exec: $lazy_cache | ||
- exec: prefer_ipv4 | ||
- exec: $forward_google | ||
- matches: | ||
- qtype 28 65 | ||
exec: reject 0 | ||
|
||
- tag: main_sequence_with_IPv6 | ||
type: sequence | ||
args: | ||
- exec: $lazy_cache | ||
- exec: $forward_google | ||
|
||
- tag: udp_server | ||
type: udp_server | ||
args: | ||
entry: DNS_MODE | ||
listen: 0.0.0.0:DNS_PORT | ||
|
||
- tag: tcp_server | ||
type: tcp_server | ||
args: | ||
entry: DNS_MODE | ||
listen: 0.0.0.0:DNS_PORT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters