I use this container for firefox. Inside firefox profile I have a policy.json to constrain DoH choices to “one choice” but it does not prevent disabling it. Can the container have a DoH instead of ipv4 or ipv6 address?
If you mean DNS over HTTP, you would need a client that can use it, make it listen on the default protocol and configure that for the container as a DNS proxy.
Some sources that can help:
- A blog post about dnscrypt-proxy running on Ubuntu: How to enable system-wide DNS-over-HTTPS on linux - DEV Community
- One of our old forum topics about DNS ove HTTP, but using a container for the host, which is not your exact use case: Dnscrypt with docker broken?
- And image for DNScrypt-proxy mentioned in the above topic: GitHub - modem7/Dnscrypt-Proxy: Docker DNSCrypt