The dnscache service can be configured to forward all queries for a specific domain to an alternate server using the "domain-remote" record type in the domains db
+
+
To forward all DNS for <domainname> to a specified remote DNS server (4.2.2.1 in this example):
+
db domains set <domainname> domain-remote Nameservers 4.2.2.1
+
signal-event domain-modify
+
+
This could be used to direct DNS for a domain to an internal DNS server connected to your network using a VPN or a custom route.
+
+
As a side-effect, you can block DNS for a domain by configuring DNS forwarding to 'localhost'.
+
+
This command tells your SME to do all DNS lookups on <domainname> locally, but doesn't configure any corresponding DNS entries. Attempted lookups for the domain and all sub-domains will fail:
+
db domains set <domainname> domain-remote Nameservers localhost
+
signal-event domain-modify
+
+
Note that 'domain-remote' entries do not appear in server-manager, and can be managed only from the command line.