Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
Utility
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
Utility
Commits
433d1d47
Commit
433d1d47
authored
Jun 07, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template smartdns
parent
2a0ee746
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
.gitignore
.gitignore
+1
-0
defaults/main.yml
defaults/main.yml
+1
-0
gen.sh
gen.sh
+3
-3
tasks/main.yml
tasks/main.yml
+3
-8
templates/smartdns/header.conf.j2
templates/smartdns/header.conf.j2
+4
-0
No files found.
.gitignore
View file @
433d1d47
/dnsmasq-china-list
/files/smartdns/china-list
/files/smartdns/smartdns.conf
/files/smartdns/smartdns.conf.j2
defaults/main.yml
View file @
433d1d47
...
...
@@ -11,6 +11,7 @@ smartdns_ports:
-
53
-
54
-
55
smartdns_disable_ipv6
:
false
kms_address
:
null
squid_address
:
null
apt_cacher_address
:
null
...
...
gen.sh
View file @
433d1d47
...
...
@@ -4,6 +4,6 @@ git fetch origin master
git reset
--hard
FETCH_HEAD
make smartdns
cd
..
cp
-rf
./
files/smartdns/header.conf ./files/smartdns/smartdns.conf
sed
's/114.114.114.114/china/g'
./dnsmasq-china-list/
*
.smartdns.conf
>>
./
files/smartdns/smartdns.conf
grep
-P
'^bogus-nxdomain=.+$'
dnsmasq-china-list/bogus-nxdomain.china.conf |
sed
's/=/ /g'
>>
./
files/smartdns/smartdns.conf
cp
-rf
./
templates/smartdns/header.conf.j2 ./templates/smartdns/smartdns.conf.j2
sed
's/114.114.114.114/china/g'
./dnsmasq-china-list/
*
.smartdns.conf
>>
./
templates/smartdns/smartdns.conf.j2
grep
-P
'^bogus-nxdomain=.+$'
dnsmasq-china-list/bogus-nxdomain.china.conf |
sed
's/=/ /g'
>>
./
templates/smartdns/smartdns.conf.j2
tasks/main.yml
View file @
433d1d47
...
...
@@ -21,14 +21,9 @@
-
apt-cacher-ng-docker
-
sni
-
name
:
smartdns
synchronize
:
src
:
./smartdns/
dest
:
'
{{utility_root}}/smartdns'
delete
:
true
recursive
:
yes
verify_host
:
no
checksum
:
yes
archive
:
no
template
:
src
:
smartdns/smartdns.conf.j2
dest
:
'
{{utility_root}}/smartdns/smartdns.conf'
notify
:
restart_smartdns
-
name
:
sni
synchronize
:
...
...
files/smartdns/header.conf
→
templates/smartdns/header.conf.j2
View file @
433d1d47
...
...
@@ -14,7 +14,11 @@ rr-ttl-max 86400
log-level warn
{% if smartdns_disable_ipv6 %}
force-AAAA-SOA yes
{% else %}
dualstack-ip-selection yes
{% endif %}
server-tls 8.8.8.8 -group tls
#server-tls 8.8.4.4 -group tls
...
...
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