I'm not sure how to handle those things in docker, but on bare metal you can add a file in /etc/dnsmasq.d/
and specify a particular domain and to which server it should be forwarded.
See the -S, --local, --server=
sectin here
https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
and here for an example
Thanks!!! In fact thanks to everyone on this thread. It works!
The solution for anyone else who wants to do this (my main dns opendns family blocks all vpn requests) :
Workout what the main domain is you want to allow. In my case it always has surfshark.com in it, even if the subdomain varies per country.
Create a config file as root on your pihole in /etc/dnsmasq.d. I called it bypass.conf. Enter the domain you want to allow:
#adding surfshark bypass
server=/surfshark.com/9.9.9.9
9.9.9…