Add configuration for CoreDNS and update host variables for lab environment
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
.:53 {
|
||||
errors
|
||||
health {
|
||||
lameduck 5s
|
||||
}
|
||||
ready
|
||||
log . {
|
||||
class error
|
||||
}
|
||||
prometheus :9153
|
||||
forward . ${forward_dns_servers}
|
||||
cache 30
|
||||
loop
|
||||
reload
|
||||
loadbalance
|
||||
}
|
||||
|
||||
%{ for z in zones ~}
|
||||
${z.fqdn}:53 {
|
||||
file /etc/coredns/db.${z.fqdn}
|
||||
log
|
||||
errors
|
||||
}
|
||||
%{ endfor ~}
|
||||
@@ -0,0 +1,13 @@
|
||||
$ORIGIN ${fqdn}.
|
||||
@ IN SOA dns.${fqdn}. ${domain_master}.${fqdn}. (
|
||||
${timestamp} ; serial
|
||||
${refresh_rate} ; refresh
|
||||
${retry_rate} ; retry
|
||||
${expire_time} ; expire
|
||||
${ttl} ) ; minimum
|
||||
|
||||
IN NS dns.${fqdn}.
|
||||
|
||||
%{ for r in records ~}
|
||||
${r.name} IN ${r.type} ${r.content}
|
||||
%{ endfor ~}
|
||||
Reference in New Issue
Block a user