DNS server configuration in Debian
Dnsmasq
The dnsmasq package allows you to start a DNS server in a very simple way. Simply by installing and starting the dnsmasq service, without any additional configuration, our PC will become a DNS cache server and will also solve the names we have configured in the / etc / hosts file of our server. The resolution will work both directly and inversely, that is, it will solve the IP given a PC name and the PC name given the IP.
Installation
To install it only the following command will be necessary:

Configuration Then we edit the / etc / dnsmasq.conf file and modify the following lines:

- We discomment strict-order for DNS requests to be made to the servers that appear in the / etc / resolv.conf file in the order in it appear.

2.We include network interfaces that must accept DNS requests, discomment the interface line for example: interface = eth0

We will now create our configuration file:
- We create the configuration file of our area:

- The domain we have chosen is iesgn.org

- We assume that the name of the server is miseror.

6.We will assume that we have a ftp server called ftp.iesgn.org and that it is in 192.168.1.201 (this is fictitious) and that we have two websites: www.iesgn.org and departments.iesgn.org.

- We also want to name the client who had a reservation assigned: smooth.

- We restart the service

modification on DHCP server
Configure the customers and indicate that your DNS is our server. If you have a DHCP server modify it to send the new DNS to the customers.
We edit the file:

And we restart the service:

Now we’ll check if the client has changed our dns by looking at the following file:

We have been successfully changed.
Command to check the operation of dns
Check the operation using the dig / nslookup command from the customers asking for the different names. Check that the DNS server makes forwarder asking with dig / nslookup the address ip of www.josedomingo.org.

For the Jose Sunday page the answer is unauthorized because our server does not have the resolution in your file and has to use a forwarder

As you see above I have created my own area and despite having followed the steps of this [page] (https: / / www.josedomingo.org / pledin / 2020 / 12 / servo-dns-dnsmasq /) of Jose Domingo, I have not managed to get the answers authorized.
I created the dns.conf file.

And I created my area:

I have also tried more things however the only way I have got to give me an authorized response is by having only the resolutions in the host file of the server, without creating my area.
