Update blocky upstream dns to bootstrap better (hopefully) and forward to consul

This commit is contained in:
IamTheFij 2022-11-15 10:26:26 -08:00
parent cf2779c971
commit 2db266bda7
2 changed files with 15 additions and 0 deletions

View File

@ -28,6 +28,11 @@ job "blocky" {
# host_network = "loopback" # host_network = "loopback"
to = "4000" to = "4000"
} }
dns {
# Set expclicit DNS servers because tasks, by default, use this task
servers = ["1.1.1.1", "1.0.0.1"]
}
} }
service { service {

View File

@ -1,3 +1,8 @@
bootstrapDns:
ips:
- 1.1.1.1
- 1.0.0.1
upstream: upstream:
default: default:
- 1.1.1.1 - 1.1.1.1
@ -18,7 +23,9 @@ upstream:
- tcp-tls:dns10.quad9.net - tcp-tls:dns10.quad9.net
conditional: conditional:
fallbackUpstream: false
mapping: mapping:
consul: {{ env "attr.unique.network.ip-address" }}:8600
home.arpa: 192.168.2.1 home.arpa: 192.168.2.1
in-addr.arpa: 192.168.2.1 in-addr.arpa: 192.168.2.1
iot: 192.168.2.1 iot: 192.168.2.1
@ -26,6 +33,9 @@ conditional:
thefij: 192.168.2.1 thefij: 192.168.2.1
.: 192.168.2.1 .: 192.168.2.1
clientLookup:
upstream: 192.168.2.1
blocking: blocking:
blackLists: blackLists:
ads: ads: