Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
bab0ad77
Commit
bab0ad77
authored
Sep 01, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tcp_dns and udp_dns
parent
2d07675d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
files/dnsmasq/smartdns.conf.j2
files/dnsmasq/smartdns.conf.j2
+17
-3
variables.yaml
variables.yaml
+1
-0
No files found.
files/dnsmasq/smartdns.conf.j2
View file @
bab0ad77
...
@@ -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 %}
...
...
variables.yaml
View file @
bab0ad77
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment