Now, you should change, in the default Files and Directories category, the Path to zone transfer program field and enter /var/named/
You will notice that through caching-nameserver, there are two Existing DNS Zones; the Root Zone and the master zone, “127.0.0”. The former is used by the DNS server and contacts the root servers on the Internet, so it can resolve domain names not handled by your DNS server. Unless your DNS server is used on an internal network (no access to the Internet) or if you are forwarding all queries to another server, you should not delete this root zone.
In order to use each network services properly, you need to create a master zone which will describe your local network. We will concentrate on the Existing DNS Zones part. Notice that the Root zone is already created.
Master 127.0.0 describes the loopback network.
We want to create the Root zone which will describe all our local network machines. Select Create a new master zone and complete the page, as shown in Figure 9.2.
A new page with many icons will be displayed: don't worry since most of them can be ignored if you do not need advanced configuration. You will be able to add all network machine names through this page, but you should create the reverse part of your master zone first. In fact, a DNS zone is composed of two parts; one for name-to-address conversion (i.e.: forward) and another for address-to-name conversion (i.e.: reverse).
Then, select Return to the zone list and choose Create a new master zone once more but this time, you must change the selection from Forward to Reverse. Instead of writing your domain name, you must write the network class like described: for a 192.168.1.0/24 network, you should write 192.168.1.
This step is the only one you have to restart each time you add a new machine in your network; all other parameters are configured only once, as long as your network does not change and you do not add other DNS servers.
Return to the zone list and select one of the new Existing DNS Zones (in our example, they are named 192.168.1 or mydomain.test). If you select mydomain.test, click on Address and you can add as many machine Names as your IP class allows you to (254 machine names in our example). Notice that the Update reverse? option is selected by default. Through this option, the Reverse part of your DNS is updated automatically.
We created a very simple DNS. To start it and load the new configuration, you must go back to the zone list and click on Start Name Server.
If the button is not replaced by a new one named Apply Changes, then the server did not start because of a configuration error. In this case, you should read the next section.
In order to use your local network to resolve Internet addresses, you have to configure the client to access the DNS. Go back to Webmin's index, and select the Hardware tab, then click on the Network Configuration icon. Then, select the DNS Client and type your DNS's IP if it is a remote client, or 127.0.0.1 if you are on the server.