Disable ALL CoreDNS AAAA (ipv6) query

Jbn1233
Apr 29, 2020

--

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)"
}

--

--

Jbn1233
Jbn1233

Written by Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |

No responses yet