D/N/A project
A new way of using
Domain Name Service

Documents :: API

RNA::DNS::Codes


NAME

RNA::DNS::Codes


SINOPSYS

    use RNA::DNS::Codes;
                my $opcode = &get_opcode(1);
                my $qtype = &qtype_by_name("NS");


DESCRIPTION

This module is part of the RNA Server, an implementation of DNA Project. DNA is an acronym for Domain Name Anarchy. For further informations take a look at DNA man page or browse http://www.dna-project.net/.

This module provide a set of support function to perform translation between DNS numeric codes and human readable plain text strings.

qclass_by_code($code)

Map qclass codes to names

qclass_by_name($qclass)

Map qclass names to codes

qtype_by_code($code)

Map qtype codes to name

qtype_by_name($qtype)

Map qtypes names to codes

get_qclasses_list()

Return a full list of all QCLASS code names

get_qtypes_list()

Return a full list of all QTYPES code names

get_opcode($code)

Return specified opcode.

get_rcode($code)

Return specified rcode.

is_tld($TLD)

Return true (1) if $TLD is a valid Top Level Domain, false (0) otherwise.

is_ip($ip)

Return true (1) if $ip is a valid IP address, false (0) otherwise.

This page last modified: Wednesday, 09-Jan-2008 16:24:59 CET
© 2007-2008 Tx0 - Some right reserved
This work is released under Creative Commons License
hosted by gna!
Valid HTML 4.01 Transitional
Valid CSS!