How To Configure Basic DNS in Linux Operating Systems?

In today’s article, we will learn how to do Basic DNS Configuration (dnsmasq) in Linux Operating Systems. For us, “dnsmasq“, which we will use for name resolution in small-scale network structures, will analyze the records we enter in our server’s “/ etc / hosts” file without requiring a very large configuration. will provide the possibility.

Now we will see how this is done in 6 steps.

Step 1. We download and install the “dnsmasq” package from the “yum repository” defined in our operating system

Step 2. We start our Dnsmasq service and make the necessary settings to start automatically when your server is turned on.

Step 3. If it is necessary to start, stop and restart our Dnsmasq service, we can use the commands below.

Step 4. If the “firewall” service is turned on in our server, we give the required permissions with the necessary commands and the desired permissions by the following commands. If our “firewall” service is off then we do not need to take any action.

Step 5. You can use two different configuration files for your Dnsmasq configuration. The choice of this is up to you. Configuration files are given below.

Step 6. We need to enter the address of the server that we configure “dnsmasq” in the “/etc/resolv.conf” file on the servers or computers that will do name resolution.

In this article, we have seen “Basic DNS Configuration in Linux Operating Systems. If you want to install a more detailed DNS server,“ How to Configure DNS and DHCP Server on Linux Operating Systems? ” you can review our article.

I hope it was a useful article.