đHow to Configure DNS Server
Introduction
DNS
The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.
Each device connected to the Internet has a unique IP address which other machines use to find the device. DNS servers eliminate the need for humans to memorize IP addresses such as 192.168.1.1 (in IPv4)
How does DNS Work
The process of DNS resolution involves converting a hostname (such as www.example.com) into a computer-friendly IP address (such as 192.168.1.1). An IP address is given to each device on the Internet, and that address is necessary to find the appropriate Internet device - like a street address is used to find a particular home. When a user wants to load a webpage, a translation must occur between what a user types into their web browser (example.com) and the machine-friendly address necessary to locate the example.com webpage.
In order to understand the process behind the DNS resolution, itâs important to learn about the different hardware components a DNS query must pass between. For the web browser, the DNS lookup occurs "behind the scenes" and requires no interaction from the userâs computer apart from the initial request.
Configuration
DNS Server
Install Package
Configure DNS
sudo vi /etc/named.conf
Create DB File for DNS Forward
db.domain
sudo vi /var/named/db.(your-domain)
db.ipaddr
sudo vi /var/named/db.(your-ip)
Edit Resolv File
sudo vi /etc/resolv.conf
Enable and Restart DNS Service
Add DNS service to Firewalld
Last updated