Close Menu
    What's Hot

    Isascii

    April 8, 2026

    unattended-upgrade

    April 8, 2026

    HTTP::Cookies::Netscape

    April 8, 2026
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • Man Pages
    • Arch Linux
    • Statistics
    • How to
      • Q&A
    • OS
      • Windows
    • Blog
      • Featured
    • MORE
      • Easter Eggs
      • IP Address
    • Write For Us
    • Contact Us
    Command Linux
    Home - man page - Net::Domain::TLD

    Net::Domain::TLD

    WillieBy WillieApril 4, 2026Updated:April 4, 2026No Comments2 Mins Read
     

    NAME

    Net::Domain::TLD – Work with TLD names
    
    
     

    SYNOPSIS

      use Net::Domain::TLD qw(tlds tld_exists);
      my @ccTLDs = tlds(‘cc’);
      print "TLD ok\n" if tld_exists(‘ac’,’cc’);
    
    
     

    DESCRIPTION

      The purpose of this module is to provide user with current list of 
      available top level domain names including new ICANN additions and ccTLDs
      Currently TLD definitions have been acquired from the following sources:
    
      http://www.icann.org/tlds/
      http://www.dnso.org/constituency/gtld/gtld.html
      http://www.iana.org/cctld/cctld-whois.htm
      https://www.iana.org/domains/root/db
    
    
     

    PUBLIC METHODS

      Each public function/method is described here.
      These are how you should interact with this module.
    
    

    "tlds"

      This routine returns the tlds requested.
    
      my @all_tlds = tlds; #array of tlds
      my $all_tlds = tlds; #hashref of tlds and their descriptions
    
      my @cc_tlds = tlds(‘cc’); #array of just ‘cc’ type tlds
      my $cc_tlds = tlds(‘cc’); #hashref of just ‘cc’ type tlds and their descriptions
    
      Valid types are:
        cc                 – country code domains
        ccidn              – internationalized country code top-level domain 
        gtld_open          – generic domains that anyone can register
        gtld_restricted    – generic restricted registration domains
        gtld_new           – new gTLDs
        new_open           – recently added generic domains
        new_restricted     – new restricted registration domains
        reserved           – RFC2606 restricted names, not returned by tlds
    
    

    "tld_exists"

      This routine returns true if the given domain exists and false otherwise.
    
      die "no such domain" unless tld_exists($tld); #call without tld type 
      die "no such domain" unless tld_exists($tld, ‘new_open’); #call with tld type
    
    
     

    COPYRIGHT

      Copyright (c) 2003-2014 Alex Pavlovic, all rights reserved.  This program
      is free software; you can redistribute it and/or modify it under the same terms
      as Perl itself.
    
    
     

    AUTHORS

      Alexander Pavlovic <[email protected]>
      Ricardo SIGNES <[email protected]>
    
    

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    Isascii

    April 8, 2026

    unattended-upgrade

    April 8, 2026

    HTTP::Cookies::Netscape

    April 8, 2026

    TR

    April 8, 2026
    Top Posts

    MEM

    February 11, 2026

    How to Make a Video Montage

    March 7, 2026

    sane-teco3

    February 26, 2026

    dpkg-buildpackage

    April 1, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.