DLookup(3) - Perform domain lookups on 2-letter and 3-letter TLDs

PHOTO EMBED

Fri Aug 19 2022 19:09:31 GMT+0000 (Coordinated Universal Time)

Saved by @pirate #perl #sockets

     use Net::DLookup;

     # Initialize Net::DLookup object
     my $dlu = Net::DLookup -> new;

     # Replace domain definitions from a file
     $dlu -> LoadTLD($file, 1);

     # Add domain definitions from a file
     $dlu -> LoadTLD($file, 0);

     # Check domain name validity and assign it to the object
     @errors = $dlu -> IsValid($domain);

     # Return availability
     @response = $dlu -> DoWhois(0);

     # Return availability and registrar information
     @response = $dlu -> DoWhois(1);
content_copyCOPY

https://www.gsp.com/cgi-bin/man.cgi?section