On CentOS, the nslookup command is part of the bind-utils package. You can install it using the command: sudo yum install -y bind-utils. If you’re using CentOS 8 or later, you might use the dnf package manager instead: sudo dnf install -y bind-utils.