Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq

Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq

 in This Tutorial you will Learn " How To Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq"

Dnsmasq is a very lightweight and simple DNS server. dnsmasq can be configured to be a DNS server and a DHCP server.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install dnsmasq
gedit /etc/dnsmasq.conf &>/dev/null
domain-needed
bogus-priv
strict-order
server=/server.education/192.168.1.20  | line 67
expand-hosts
# line 145 : add your own domain name
domain=primaryhost.com
systemctl enable --now dnsmasq
firewall-cmd --add-service=dns ; firewall-cmd --runtime-to-permanent
_________________________________________________________________________________________
Client Host -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install bind-utils
nmcli connection modify ens33 ipv4.dns 192.168.1.20
nmcli connection down ens33; nmcli connection up ens33
dig www.primaryhost.com.
dig -x 192.168.1.20
_____________________________




Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram