No hacky scripts needed, this DNS server has these things built-in ...
I did it for the same reason most homelab users start self-hosting DNS — network-wide ad blocking. My homelab was already a bottleneck experiment on an 8-year-old laptop; I didn’t want a DNS ...