-
Connect to the server (nsX.lab.nxdomain.se) by using SSH or PuTTY.
-
Change the host name:
hostnamectl set-hostname nsX.lab.nxdomain.se
-
Logout and login to get an updated command prompt.
-
Upgrade base operating system:
dnf upgrade
-
On RedHat, CentOS and Rocky, install EPEL:
dnf install epel-release
Not needed here since we're using Fedora Linux.
-
Enable Knot repostory:
dnf install 'dnf-command(copr)' dnf copr enable @cznic/knot-dns-latest
-
Install Knot. Also install
bind-utils
fordig(1)
:dnf install knot knot-utils bind-utils
-
Ensure that Knot has a reasonable default configuration:
vi /etc/knot/knot.conf
Add:
server: rundir: "/run/knot" user: knot:knot listen: [ 0.0.0.0@53, ::@53 ] log: - target: syslog any: info database: storage: "/var/lib/knot" acl: - id: acl_localhost address: 127.0.0.1 action: transfer template: - id: default storage: "/var/lib/knot" file: "%s.zone"
-
Check that the configuration is valid:
knotc conf-check
-
Disable
systemd-resolved(8)
as it might interfer with Knot:systemctl disable systemd-resolved systemctl stop systemd-resolved
-
Enable and start Knot:
systemctl enable knot systemctl start knot
-
Check that knot is running:
systemctl status knot
Next Section: Publish unsigned zone using Knot