Commit bab0ad77 authored by nanahira's avatar nanahira

add tcp_dns and udp_dns

parent 2d07675d
......@@ -24,24 +24,38 @@ force-AAAA-SOA yes
dualstack-ip-selection yes
{% endif %}
{% if smartdns.udp_dns is defined and smartdns.udp_dns %}
# UDP DNSes
{% for dns in smartdns.udp_dns %}
server {{dns}} -group ovsersea
{% endfor %}
{% endif %}
{% if smartdns.tcp_dns is defined and smartdns.tcp_dns %}
# TCP DNSes
{% for dns in smartdns.tls_dns %}
server-tcp {{dns}} -group ovsersea
{% endfor %}
{% endif %}
{% if smartdns.tls_dns is defined and smartdns.tls_dns %}
# TLS DNSes
{% for dns in smartdns.tls_dns %}
server-tls {{dns}} -group tls
server-tls {{dns}} -group ovsersea
{% endfor %}
{% endif %}
{% if smartdns.https_dns is defined and smartdns.https_dns %}
# HTTPS DNSes
{% for dns in smartdns.https_dns %}
server-https https://{{dns}}/dns-query -group tls
server-https https://{{dns}}/dns-query -group ovsersea
{% endfor %}
{% endif %}
{% if smartdns.trusted_dns is defined and smartdns.trusted_dns %}
# Trusted DNSes
{% for dns in smartdns.trusted_dns %}
server {{dns}} -group tls
server {{dns}} -group ovsersea
{% endfor %}
{% endif %}
......
......@@ -77,6 +77,7 @@ vars:
external: null # 完全不使用 smartdns
# - 114.114.114.114#53
disable_ipv6: false # 是否禁用IPv6解析
# tcp_dns and udp_dns
tls_dns:
- 8.8.8.8
- 1.1.1.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment