You can use the DNS module of YaST to configure a DNS server for your local network. When starting the module for the first time, a wizard starts, prompting you to make just a few basic decisions concerning administration of the server. Completing this initial setup produces a very basic server configuration that should be functioning in its essential aspects. The expert mode can be used to deal with more advanced configuration tasks.
The wizard consists of three steps or dialogs. At the appropriate places in the dialogs, you are given the opportunity to enter the expert configuration mode.
When starting the module for the first time, the Figure 20.1, “DNS Server Installation: Forwarder Settings”, opens. In it, decide whether the PPP daemon should provide a list of forwarders on dial-up via DSL or ISDN ( ) or whether you want to supply your own list ( ).dialog, shown in
The Section 20.5, “Zone Files”.
For a new zone, provide a name for it in . To add a reverse zone, the name must end
.in-addr.arpa. Finally, select the (master or slave). See Figure 20.2, “DNS Server Installation: DNS Zones”. Click
other settings of an existing zone. To remove
a zone, click .
In the final dialog, you can open the ports for the DNS service in the firewall that is activated during the installation and decide whether DNS should be started. The expert configuration can also be accessed from this dialog. See Figure 20.3, “DNS Server Installation: Finish Wizard”.
After starting the module, YaST opens a window displaying several configuration options. Completing it results in a DNS server configuration with the basic functions in place:
Under, define whether the DNS server should be started when the system boots (during booting the system) or manually. To start the DNS server immediately, select . To stop the DNS server, select . To save the current settings, select . You can open the DNS port in the firewall with and modify the firewall settings with .
To set what the DNS server should log
and how, select
selecting or specify a
different file by selecting . In the
latter case, additionally specify the maximum file size in
megabytes and the number of log files to store.
Further options are available under every query to be logged, in which case the log file could grow extremely large. For this reason, it is not a good idea to enable this option for other than debugging purposes. To log the data traffic during zone updates between DHCP and DNS server, enable . To log the data traffic during a zone transfer from master to slave, enable . See Figure 20.4, “DNS Server: Logging”.. Enabling causes
To add a slave zone, select, choose the zone type , and click .
To add a master zone, select, choose the zone type , write the name of the new zone, and click .
To edit a master zone, select, choose the zone type , select the master zone from the table, and click . The dialog consists of several pages: (the one opened first), , , , and .
This dialog allows you to define alternative name servers for the zones specified. Make sure that your own name server is included in the list. To add a record, enter its name under Figure 20.6, “DNS Server: Zone Editor (NS Records)”.then confirm with . See
To add a mail server for the current zone to the existing list, enter the corresponding address and priority value. After doing so, confirm by selecting Figure 20.7, “DNS Server: Zone Editor (MX Records)”.. See
This page allows you to create SOA (start of authority) records. For an explanation of the individual options, refer to Example 20.6, “File /var/lib/named/world.zone”.
This dialog manages name resolution. In, enter the hostname then select its type. represents the main entry. The value for this should be an IP address. is an alias. Use the types and for detailed or partial records that expand on the information provided in the and tabs. These three types resolve to an existing A record. is for reverse zones. It is the opposite of an A record.