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
b379673d
Commit
b379673d
authored
Jun 05, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 1 smartdns for everything
parent
ffea5e6c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
35 deletions
+32
-35
.gitignore
.gitignore
+3
-0
files/smartdns/china.conf
files/smartdns/china.conf
+0
-25
files/smartdns/header.conf
files/smartdns/header.conf
+10
-0
gen.sh
gen.sh
+8
-0
templates/docker-compose.yml.j2
templates/docker-compose.yml.j2
+11
-10
No files found.
.gitignore
0 → 100644
View file @
b379673d
/dnsmasq-china-list
/files/smartdns/china-list
/files/smartdns/smartdns.conf
files/smartdns/china.conf
deleted
100644 → 0
View file @
ffea5e6c
bind
-
tcp
[::]:
53
bind
[::]:
53
tcp
-
idle
-
time
3
cache
-
size
4096
prefetch
-
domain
yes
serve
-
expired
yes
serve
-
expired
-
ttl
0
speed
-
check
-
mode
tcp
:
80
,
tcp
:
443
,
ping
rr
-
ttl
-
min
1
rr
-
ttl
-
max
86400
log
-
level
warn
server
114
.
114
.
114
.
114
server
114
.
114
.
115
.
115
server
223
.
5
.
5
.
5
server
223
.
6
.
6
.
6
server
180
.
76
.
76
.
76
server
119
.
29
.
29
.
29
server
119
.
28
.
28
.
28
server
1
.
2
.
4
.
8
server
210
.
2
.
4
.
8
files/smartdns/
tls
.conf
→
files/smartdns/
header
.conf
View file @
b379673d
...
@@ -20,3 +20,13 @@ server-tls 9.9.9.9
...
@@ -20,3 +20,13 @@ server-tls 9.9.9.9
server
-
tls
1
.
1
.
1
.
1
server
-
tls
1
.
1
.
1
.
1
server
-
tls
1
.
0
.
0
.
1
server
-
tls
1
.
0
.
0
.
1
server
-
https
https
://
cloudflare
-
dns
.
com
/
dns
-
query
server
-
https
https
://
cloudflare
-
dns
.
com
/
dns
-
query
server
114
.
114
.
114
.
114
-
group
china
server
114
.
114
.
115
.
115
-
group
china
server
223
.
5
.
5
.
5
-
group
china
server
223
.
6
.
6
.
6
-
group
china
server
180
.
76
.
76
.
76
-
group
china
server
119
.
29
.
29
.
29
-
group
china
server
119
.
28
.
28
.
28
-
group
china
server
1
.
2
.
4
.
8
-
group
china
server
210
.
2
.
4
.
8
-
group
china
gen.sh
0 → 100755
View file @
b379673d
#!/bin/bash
cd
dnsmasq-china-list
git pull
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
templates/docker-compose.yml.j2
View file @
b379673d
...
@@ -18,17 +18,18 @@ services:
...
@@ -18,17 +18,18 @@ services:
- '53:53/udp'
- '53:53/udp'
command: -f -x -c /etc/smartdns/smartdns.conf
command: -f -x -c /etc/smartdns/smartdns.conf
volumes:
volumes:
- ./smartdns/tls.conf:/etc/smartdns/smartdns.conf:ro
- ./smartdns/smartdns.conf:/etc/smartdns/smartdns.conf:ro
- ./smartdns/china-list:/etc/smartdns/china-list:ro
smartdns-china:
#
smartdns-china:
restart: always
#
restart: always
image: {{smartdns_image}}
#
image: {{smartdns_image}}
ports:
#
ports:
- '55:53'
#
- '55:53'
- '55:53/udp'
#
- '55:53/udp'
command: -f -x -c /etc/smartdns/smartdns.conf
#
command: -f -x -c /etc/smartdns/smartdns.conf
volumes:
#
volumes:
- ./smartdns/china.conf:/etc/smartdns/smartdns.conf:ro
#
- ./smartdns/china.conf:/etc/smartdns/smartdns.conf:ro
apt-cacher-ng:
apt-cacher-ng:
restart: always
restart: always
...
...
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