Server Side#
(1) Install bind9 online
yum install -y bind bind-utils
(2) Start the service
systemctl start named
(3) Check the service status
systemctl status named
(4) Configure the service to start on boot
systemctl enable named
(5) Modify the named service configuration file to set the DNS log path
vi /etc/named.conf
-------------------named.conf-------------------
options {
// Accept DNS requests from any network interface
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };