Иван Бахчеев > Net-Domain-Info-0.02 > Net::Domain::Info

Download:
Net-Domain-Info-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Net::Domain::Info - request for domain information like whois, dns, seo

SYNOPSIS ^

If you use just this module, then you receive only IDNA domain support. The main power of this module is contained in plugins. Usage of plugins is simple: you need provide their names in the import list.

        use Net::Domain::Info qw(::Whois ::SEO); # used Whois and SEO plugins
        use Encode;

        my $domain_raw = 'нфтвучюкг.com';
        my $domain_idn = Encode::decode_utf8 ($domain_raw);
        my $domain_asc = 'xn--b1acukzhe1a7d.com';

        my $domain_info = Net::Domain::Info->new ($domain_idn);

        ok $domain_info;
        ok $domain_info->name eq $domain_asc;
        ok $domain_info->idn  eq $domain_idn;

METHODS ^

new

Creates domain info object.

name

Returns ASCII representation of domain name.

idn

Returns IDNA representation of domain name.

AUTHOR ^

Ivan Baktsheev, <apla at the-singlers.us>

BUGS ^

Please report any bugs or feature requests to my email address, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Domain-Info. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2008 Ivan Baktsheev

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: