How to Install libnet-nslookup-perl in Ubuntu 18.04

Install libnet-nslookup-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libnet-nslookup-perl


simple DNS lookup module for perl

Net::Nslookup provides the capabilities of the standard UNIX command line tool nslookup(1). Net::DNS is a wonderful and full featured module, but quite often, all you need is `nslookup $host`. Net::Nslookup provides that functionality. . Net::Nslookup exports a single function, called nslookup. nslookup can be used to retrieve A, PTR, CNAME, MX, and NS records. . my $a = nslookup(host => "", type => "A"); . my @mx = nslookup(domain => "", type => "MX"); . my @ns = nslookup(domain => "", type => "NS");


Version: 2.04-2

Section: universe/perl