Configure resolvers like puppet (openforwarder view + forward zones)
Fixes recursion being refused for external clients: the resolver had no allow-recursion, so BIND defaulted to localnets. Mirrors the puppet resolver config exactly. - add openforwarder BindView: match-clients = internal ACLs, recursion yes, allow-recursion/allow-query any (match-clients gates access) - add 4 BindACLs (acl-main.unkin.net / acl-dmz / acl-common / acl-nomad-jobs) from puppet acls.conf - add 26 conditional forward zones (unkin/consul/k8s/dmz upstreams), bound to the openforwarder view; needs operator v0.1.4 to render them on every pod - global forwarders 8.8.8.8/1.1.1.1 (puppet default) - bump operator image to v0.1.4
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# openforwarder view, mirrored from puppet /etc/named/views.conf.
|
||||
# match-clients gates access to internal networks; recursion/query are 'any'
|
||||
# within the view since match-clients already restricts who reaches it.
|
||||
apiVersion: bind.unkin.net/v1alpha1
|
||||
kind: BindView
|
||||
metadata:
|
||||
name: openforwarder
|
||||
namespace: bind-internal
|
||||
spec:
|
||||
clusterRef: bind-resolvers
|
||||
order: 100
|
||||
matchClients:
|
||||
- acl-main.unkin.net
|
||||
- acl-nomad-jobs
|
||||
- acl-common
|
||||
- acl-dmz
|
||||
recursion: true
|
||||
allowQuery:
|
||||
- any
|
||||
extraOptions:
|
||||
- "allow-recursion { any; }"
|
||||
- "allow-query-cache { any; }"
|
||||
Reference in New Issue
Block a user