Skip to content

Add a DNS request route

You can resolve requests for external domain names through DNS servers on your network using DNS request routes. This provides faster resolution, decreases internet traffic over the network, and improves security as less DNS information is exposed on the internet.

You can also use DNS request routes when you need to use specific DNS servers to resolve queries for specific domains. For example, if you have an internal Active Directory server, you may want to divert queries for your local domain to that server while still forwarding queries for internet domains directly to your configured DNS server.

You must set Sophos Firewall to act as a DNS server. To do this, configure your DNS settings under Network > DNS > DNS configuration.

If you want to resolve domain names through an alternate DNS server rather than forwarders or root servers, you can configure a DNS request route for that server. If a cache lookup fails, the DNS query isn't forwarded to forwarders or root servers. Instead, it's routed to the target servers added in the request route entry.

Example

If you've configured internal DNS servers and want external domain names to be resolved by them, you can add routes to the internal DNS servers for those domain names. This decreases the internet traffic over the network and speeds up DNS client requests, as queries aren't forwarded outside the network.

To add a DNS request route, do as follows:

  1. Go to Network > DNS.
  2. Scroll to DNS request route and click Add.
  3. Enter a name.
  4. For Host/domain name, enter the domain for which you want to use the internal DNS server.
  5. For Target servers, select the DNS servers to use to resolve the specified domain.

    To search for a server on the Host list, start typing the server name. To create an IP host for a server, click Create.

    The firewall queries the selected servers in the specified order. You can add up to eight IP addresses.

  6. Click Save.

Upgrading to SFOS 23.0 and later

In 23.0 and later, DNS request routes require a name. So, when you upgrade to these versions, the firewall automatically assigns names to existing request routes.

The automatically generated name contains up to 55 characters from the domain name, followed by an underscore and eight characters.

Example
dns1.sophosexample.net_a1bd2831