Install libnet-dns-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-dns-perl
Perform DNS queries from a Perl script
Net::DNS is a DNS resolver implemented in Perl supporting IPv6. It allows the programmer to perform nearly any type of DNS query from a Perl script.