Update blocky upstream dns to bootstrap better (hopefully) and forward to consul
This commit is contained in:
parent
cf2779c971
commit
2db266bda7
@ -28,6 +28,11 @@ job "blocky" {
|
||||
# host_network = "loopback"
|
||||
to = "4000"
|
||||
}
|
||||
|
||||
dns {
|
||||
# Set expclicit DNS servers because tasks, by default, use this task
|
||||
servers = ["1.1.1.1", "1.0.0.1"]
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
|
@ -1,3 +1,8 @@
|
||||
bootstrapDns:
|
||||
ips:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
|
||||
upstream:
|
||||
default:
|
||||
- 1.1.1.1
|
||||
@ -18,7 +23,9 @@ upstream:
|
||||
- tcp-tls:dns10.quad9.net
|
||||
|
||||
conditional:
|
||||
fallbackUpstream: false
|
||||
mapping:
|
||||
consul: {{ env "attr.unique.network.ip-address" }}:8600
|
||||
home.arpa: 192.168.2.1
|
||||
in-addr.arpa: 192.168.2.1
|
||||
iot: 192.168.2.1
|
||||
@ -26,6 +33,9 @@ conditional:
|
||||
thefij: 192.168.2.1
|
||||
.: 192.168.2.1
|
||||
|
||||
clientLookup:
|
||||
upstream: 192.168.2.1
|
||||
|
||||
blocking:
|
||||
blackLists:
|
||||
ads:
|
||||
|
Loading…
Reference in New Issue
Block a user