dns, utilities, alpine linux,

Install dig and nslookup on Alpine Linux

Jan 03, 2022 · 1 min read · Post a comment

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks you need to install DNS tools because they are not installed by default. Here I’m going to show you the installation of bind-tools package which contains both dig and nslookup.

Prerequisites

  • Alpine Linux
  • sudo privileges

Install dig and nslookup on Alpine Linux

Step 1. First update Alpine system packages.

apk update

Step 2. Install dig and nslookup on Alpine.

apk add bind-tools

Step 3. To verify the installation, run:

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.