My intranet network do not need AAAA DNS lookup. To reduce load to my actual DNS cluster, I have to disable AAAA.
This is how:
.:53 {
rewrite stop type AAAA A
loadbalance
reload 30s
log . "{remote} {type} {name} {class} {size} {rcode} {duration}"
cache 3600
forward . 10.18.0.124 10.19.0.125 10.16.4.245
}
Done
edit1:
Found better solution
template ANY AAAA {rcode NOERROR}
edit2:
Best solution
template ANY AAAA {
rcode NOERROR
authority "{{ .Zone }} 3600 {{ .Class }} SOA ns1.home.net. dnsadmin.home.net (2022122100 14400 3600 604800 30)"
}