I need a gateway to convert between normal DNS on port 53 and DoH on an AdGuard Home server. This appears to be the only way to pass both a client ID and client IP to AdGuard Home for filtering purposes.
I found this example (https://www.nginx.com/blog/using-nginx-as-dot-doh-gateway/), but it's going the other direction.
I've tried https://github.com/aarond10/https_dns_proxy, but it does not have the option to add a header containing the client IP.