Bind9 is one of the most used DNS servers. The server is open-source and can be downloaded over the terminal.
Because we have to edit every config file separately, the whole configuration is pretty error-prone. For this tutorial, we used Ubuntu Server 18.04.
First, we have to install some updates.
Now we can install Bind9.
In this passage, we show you the tasks of the various files.
This file integrates the other ones. We can leave this default.
We define the next DNS server for our bind and allow recursive queries for our subnets.
Defines the DNS zones.
Forward lookup zones
For this example, we define a DMZ and a LAN zone.
The file db.0 can be used as a template.
192.168.220.12 is our DNS- and web server. You have to replace server with the real server name. Do the same for the gateway.
Replace names and IP addresses for the LAN appliances.
Reverse lookup zones
In the next passage, we examine the reverse lookup zones.
This is the reverse lookup zone for the DMZ.
The numbers under the @ are always the last octet from the appliance's IP address.
This is the reverse lookup zone for the LAN.
Important! After every change in a zone file, we need to count up the serial by 1.
If the status says that all zones are loaded, we did it.