next up previous contents
Next: Smart Blocking Up: Configuring Core Services Previous: Configuring Core Services

   
Domain Name System Setup

The mapping of Internet host names to addresses is done by means of the Domain Name System or DNS. Setting up DNS can be a complex task, but the administration program will take care of most of the complexities for you. Even so, it is useful to have an understanding of DNS requirements and how DNS is handled by your firewall or VPN gateway.

The first thing to do is to establish what the requirements are for your site. There are a number of points to consider:

Unless you already have name servers running in your network, the easiest way to satisfy all of these requirements is to have the firewall act as both the internal and the external name server. It is possible (and even preferable) to do this even if someone else, such as your ISP, acts as your primary external name server.

Apart from supporting name/address lookups, DNS also allows mail exchange or MX records to be looked up. These records specify where mail for particular addresses or domains should be routed. Redundancy is possible by having multiple mail exchangers for a mail address. The public external name server needs to provide an MX record specifying that any mail for the domain should be relayed to the firewall. The firewall allows you to specify additional external mail exchange hosts to which mail can be sent if the firewall is down (this is really only useful if the firewall is the primary external DNS server, and there is at least one secondary external DNS server).

The CEQURUX Firewall includes a proxy DNS server which provides what we call `split DNS'; namely, the redirection of DNS requests to one of two or more servers depending on where the request comes from and what hostname or address is being requested. This proxy server has a number of uses:

The split DNS proxy server will automatically be run if your configuration requires it (for example, if you have VPNs, transparent TCP or UDP gateways, or ICMP gatewaying configured, which covers almost every case).

In summary, the information you need to set up the name service on the firewall is:


  
Figure 4.7: The Domain Name System Setup Screen
\includegraphics[width=14cm,height=10cm]{dnssetup.ps}

The DNS Setup Screen (Figure 4.7) lets you specify the following fields:

Primary Internal
The host which acts as the primary internal nameserver. If you leave this empty, then no internal name server will be used, while a value of 127.0.0.1 will cause the firewall to act as the internal name server.

Primary External
The primary name server to be used for the external network (usually the Internet). This would typically be your service provider's name server, or the firewall itself. You can have the firewall provide the external name service by specifying 127.0.0.1 here. You must specify an external name server.

Auto-Update Root Cache
The firewall can automatically retrieve and install a new DNS root cache file at regular intervals. This field lets you specify how often this should be done. A value of zero will prevent any auto-updating.

Seamless DNS
If enabled, then the DNS proxy will transparently proxy UDP DNS requests from internal hosts to external servers. This allows you to deploy a CEQURUX Firewall in front of an existing network without having to reconfigure internal DNS resolvers.

Seamless MX
If enabled, then the DNS proxy will supply fake MX records to internal clients for external mail servers that point to itself. This allows you to deploy a CEQURUX Firewall in front of an existing network without having to reconfigure internal Mail Transfer Agents (MTAs).

The available keys are:

F1
Cancel any changes and return to the Main Setup Screen
F2
View or edit the local hosts within the domain
F3
View or edit the secondary external DNS servers
F4
View or edit the hosts that can do zone transfers but aren't secondaries
F5
View or edit the smart blocks
F7
View help
F8
Save any changes and return to the Main Setup Screen

Note that secondary MX hosts are configured from the Mail Setup Screen rather than the DNS Setup Screen.


  
Figure 4.8: The Local Host Setup Screen
\includegraphics[width=14cm,height=10cm]{lhostsetup.ps}

Next you need to set up the list of hosts and addresses on your internal networks, which you do from the Local Host Setup Screen (Figure 4.8). The entries you make here are put in the /etc/hosts file (unless there are a large number of entries), as well as in the external or internal DNS files if the firewall is running the internal or external name server. An entry in the hosts file is only accessible by the firewall itself, while an entry in the DNS files makes the host/address mapping accessible from other hosts that use the firewall as a name server. The firewall will put all the entries in the internal DNS databases, but only the entries for external hosts in the external DNS database.

You do not need to domain-qualify the names of hosts if the domain is the same as that entered in the Registration Screen; this domain will be automatically appended to any hostnames that are not domain-qualified. Also, you should not make an entry for the firewall itself; implicit entries are set up using the hostname from the Registration screen, and using the names associated with interfaces on the System Setup screen.

If you enter a host name in the list that is qualified with a domain other than the local domain, then the details will be placed in the hosts file but not in the DNS files. This could be useful for ensuring that the firewall can resolve some important external addresses even if there are DNS problems.

Another case in which you may find it useful to enter a domain-qualified name is if you have a public web server that is actually hosted by your ISP, rather than internally. If your ISP provides your external DNS, then they will typically be serving an address for `www.yourdomain' to the outside world. Your internal hosts will be querying the firewall for the address associated with this host, rather than the ISP's name server. By making an entry in the local hosts for the address of the web server, and domain qualifying it, your internal hosts will be able to correctly look up the address of your web server (an alternative approach to solving this problem is to specify the external server address as the address of your public web server in the Public Service setup).

The fields in this screen are:

Name
The name of the host.
Address
The numeric IP address of the host.

The following functions are available from this screen:

F1
Discard the changes and return to the DNS Setup Screen
F2
Show the previous page of host entries
F3
Show the next page of host entries
F4
Import a list of hosts and addresses from a file
F5
Insert an entry at the current row
F6
Delete the entry at the current row
F7
View help
F8
Record the changes and return to the DNS Setup Screen

If you have a hosts file containing lists of host names and addresses, you can import the data from that file directly into the Local Hosts Setup Screen. You will need to transfer the file onto the firewall first; this can be done using a diskette (with the UNIX tar command or similar), or, if you have completed a basic configuration, you can use FTP.


  
Figure 4.9: The External Secondary DNS Servers Setup Screen
\includegraphics[width=14cm,height=10cm]{secDNSsetup.ps}

The External Secondary DNS Servers Setup Screen (Figure 4.9) allows you to specify the domain names and IP addresses of the secondary name servers that your firewall should use, and that may request zone transfers from the firewall (if your firewall is the primary external DNS server).


  
Figure 4.10: The External Zone Transfer Hosts Setup Screen
\includegraphics[width=14cm,height=10cm]{zonersetup.ps}

The External Zone Transfer Hosts Setup Screen (Figure 4.10) allows you to specify the domain names and IP addresses of hosts that are allowed to do zone transfers from your firewall but should not be used as secondary DNS servers. In most cases you should not need any of these, but there are some ISPs who may require this.


next up previous contents
Next: Smart Blocking Up: Configuring Core Services Previous: Configuring Core Services
Copyright © 2004, CEQURUX Technologies