Example: Splitting Domain Name System over firewall

 

This example depicts Domain Name System (DNS) operating over a firewall to protect internal data from the Internet, while allowing internal users to access data on the Internet.

The following figure depicts a simple subnet network that uses a firewall for security. With i5/OS® DNS based on BIND 8, you can set up multiple DNS servers on a single System i™ model. Suppose that the company has an internal network with reserved IP space and an external section of a network that is available to the public.

The company wants its internal clients to be able to resolve external host names and to exchange mail with people on the outside. The company also wants its internal resolvers to have access to certain internal-only zones that are not available at all outside of the internal network. However, they do not want any outside resolvers to be able to access the internal network.

To accomplish this, the company sets up two DNS server instances on the same System i model, one for the intranet and one for everything in its public domain. This is called split DNS.

Figure 1. Split DNS over firewall

The external server, DNSB, is configured with a primary zone mycompany.com. This zone data includes only the resource records that are intended to be part of the public domain. The internal server, DNSA, is configured with a primary zone mycompany.com, but the zone data defined on DNSA contains intranet resource records. The forwarders option is defined as 10.1.2.5. This forces DNSA to forward queries it cannot resolve to the DNSB server.

If you are concerned about the integrity of your firewall or other security threats, you have the option of using the listen-on option to help protect internal data. To do this, you can configure the internal server to only allow queries to the internal mycompany.com zone from internal hosts. In order for all this to work properly, internal clients need to be configured to query only the DNSA server. You need to consider the following configuration settings to set up split DNS:

 

Parent topic:

Examples: Domain Name System
Related reference
BIND 8 features