Commit bab0ad77 authored by nanahira's avatar nanahira

add tcp_dns and udp_dns

parent 2d07675d
...@@ -24,24 +24,38 @@ force-AAAA-SOA yes ...@@ -24,24 +24,38 @@ force-AAAA-SOA yes
dualstack-ip-selection yes dualstack-ip-selection yes
{% endif %} {% 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 %} {% if smartdns.tls_dns is defined and smartdns.tls_dns %}
# TLS DNSes # TLS DNSes
{% for dns in smartdns.tls_dns %} {% for dns in smartdns.tls_dns %}
server-tls {{dns}} -group tls server-tls {{dns}} -group ovsersea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.https_dns is defined and smartdns.https_dns %} {% if smartdns.https_dns is defined and smartdns.https_dns %}
# HTTPS DNSes # HTTPS DNSes
{% for dns in smartdns.https_dns %} {% for dns in smartdns.https_dns %}
server-https https://{{dns}}/dns-query -group tls server-https https://{{dns}}/dns-query -group ovsersea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.trusted_dns is defined and smartdns.trusted_dns %} {% if smartdns.trusted_dns is defined and smartdns.trusted_dns %}
# Trusted DNSes # Trusted DNSes
{% for dns in smartdns.trusted_dns %} {% for dns in smartdns.trusted_dns %}
server {{dns}} -group tls server {{dns}} -group ovsersea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
...@@ -77,6 +77,7 @@ vars: ...@@ -77,6 +77,7 @@ vars:
external: null # 完全不使用 smartdns external: null # 完全不使用 smartdns
# - 114.114.114.114#53 # - 114.114.114.114#53
disable_ipv6: false # 是否禁用IPv6解析 disable_ipv6: false # 是否禁用IPv6解析
# tcp_dns and udp_dns
tls_dns: tls_dns:
- 8.8.8.8 - 8.8.8.8
- 1.1.1.1 - 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