I use a pfSense router and using the DNS Resolver, I get local dns just fine (and it relays DoH or DoT for even more security), but you can install OPNSense (or even pfSense CE) on any computer with at least two ethernets for the same functionality.
Android is a rough one, because often it doesn’t use local dns and prefers to use google dns directly unless you manually specify a dns.
I use a pfSense router and using the DNS Resolver, I get local dns just fine (and it relays DoH or DoT for even more security), but you can install OPNSense (or even pfSense CE) on any computer with at least two ethernets for the same functionality.
Android is a rough one, because often it doesn’t use local dns and prefers to use google dns directly unless you manually specify a dns.