Example: Split 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 illustration depicts a simple subnet network that uses a firewall for security. OS/400® V5R1 DNS based on BIND 8 allows you to set up multiple DNS servers on a single iSeries™. 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 iSeries server, one for the intranet and one for everything in its public domain. This is called split DNS.

Figure 1. Split DNS over firewall
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:

Related reference
BIND 8 features