dns, centos,

Install dig and nslookup on CentOS 9 Stream

Aug 29, 2022 · 1 min read · Post a comment

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig and nslookup quickly on CentOS 9 Stream.

Prerequisites

  • CentOS 9 Stream
  • sudo privileges

Install dig and nslookup on CentOS 9 Stream

Step 1. Update the CentOS 9 packages.

sudo dnf update

Step 2. Install dig and nslookup on CentOS 9 Stream.

sudo dnf install bind-utils

Step 3. Verify the installation.

dig -v
nslookup -v

Conclusion

As I mentioned the installation process is very simple and quick. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.