Split DNS requests based on Domain Requests

Hello all,

I have a DNS( example.com ) Servers in Cloud , i wanted my VPN Client Users to Get DNS Resolved for that specific domain related queries alone to be resolved in my DNS Server and other Queries should be passed on to the Other DNS Ip Address , it can be global DNs or may be other Internal DNS Servers . How can i achieve the same in Pritunl

There isn’t any option to configure domain specific DNS servers. The configured DNS server will be applied to all DNS queries. This could be done with a CoreDNS server using the configuration below. Then this DNS server could be configured with the Pritunl server.

example.com {
    forward . 123.123.123.123
    log
    errors
}

. {
    forward . 8.8.8.8
    log
    errors
    cache 10
}