How to Install NSD on OpenSUSE Latest
NSD, or Name Server Daemon, is an open-source authoritative DNS server that is designed for high performance and scalability. In this tutorial, we will be discussing how to install NSD on OpenSUSE Latest.
Prerequisites
Before we begin, we need to have a few things in place.
- A server running OpenSUSE Latest.
- Root access or a user with sudo privileges.
Step 1: Update the System
Before installing any software on the system, it is always a good practice to update the system packages to their latest versions. To update the system, run the following command:
sudo zypper update
Step 2: Install NSD
To install NSD, run the following command:
sudo zypper install nsd
This command will install NSD along with any required dependencies.
Step 3: Configure NSD
After installing NSD, the next step is to configure it. The default NSD configuration file is located at /etc/nsd/nsd.conf. You can open the file using any text editor of your choice.
sudo nano /etc/nsd/nsd.conf
The NSD configuration file is well-documented, and you can comment out any settings that you do not need. For example, if you do not need DNSSEC, you can comment out the following sections:
# server:
# auto-trust-anchor-file: "/var/lib/nsd/root.key"
#
# zone:
# name: "."
# zonefile: "/var/lib/nsd/db"
Once you have made the necessary changes to the NSD configuration file, save the file and exit the editor.
Step 4: Start NSD
To start NSD, run the following command:
sudo systemctl start nsd
To ensure that NSD starts automatically whenever the server reboots, run the following command:
sudo systemctl enable nsd
Step 5: Configure Firewall
By default, OpenSUSE has a firewall enabled. If you are running a firewall, you will need to allow traffic to port 53, which is used by NSD to listen for DNS queries. To do this, run the following command:
sudo firewall-cmd --add-port=53/tcp --add-port=53/udp --permanent
sudo firewall-cmd --reload
Conclusion
That's it! You have successfully installed and started NSD on OpenSUSE Latest. You can now configure NSD to serve DNS requests and perform other related tasks.