DNS (Domain Name Service):
Used for Name (FQDN) to IP and IP to Name (FQDN) resolution.
DNS Record:
| Record | Description |
| A | Used for Alias. |
| PTR | Use for IP to Name resolution |
| MX | Used for Mail Server |
RPM package for DNS
bind
bind-utils
Configuration Files
/etc/named.conf
/etc/named.rfc1912.zones
/var/named/forward.zone
/var/named/reverse.zone
Note: You can give any name you like for forward.zone file and reverse.zone file.
To verify configuration of /etc/named.conf
named-checkconf
To verify configuration of zone file
named-checkzone domain.name zonefile
eg: named-checkzone wtuto.com forward.zone
Update the firewalld rules to allow incoming DNS traffic:
firewall-cmd --permanent --add-service=dns
firewall-cmd --reload
Stop, Start, Restart and Check Status of DNS Server (bind):
systemctl restart bind
systemctl status bind
To start bind automatically on OS boot time:
systemctl enable --now named
How To Install and Configure DNS Server in RHEL 9:
‹
›