dns, aws, amazon linux 2,

Install nslookup on Amazon Linux 2

Apr 27, 2022 · 1 min read · Post a comment

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

Prerequisites

  • Amazon Linux 2
  • sudo privileges

Install Nslookup on Amazon Linux 2

Step 1. Update the EC2 system packages.

sudo yum update

Step 2. Install nslookup.

sudo yum install bind-utils

Step 3. Verify installation.

nslookup google.com

Output:

Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	google.com
Address: 142.250.186.174
Name:	google.com
Address: 2a00:1450:4001:82b::200e

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.