Net::Bind::Utils - various routines common across Net::Bind packages.


Net-Bind documentation  | view source Contained in the Net-Bind distribution.

Index


NAME

Top

Net::Bind::Utils - various routines common across Net::Bind packages.

SYNOPSIS

Top

  use Net::Bind::Utils qw(valid_domain valid_ip);

DESCRIPTION

Top

A catch-all place for various routines that are useful across most, if not all, of the Net::Bind interfaces.

This module is not designed to be subclassable.

ROUTINES

Top

valid_domain($domain)

Returns 1 if the given $domain string is defined and is a domain that bind is capable of resolving, otherwise returns 0.

valid_domain_rfc1035($domain)

Returns 1 if the given $domain string is defined and is a valid rfc1035 domain name, otherwise returns 0.

valid_ip($ip)

Returns 1 if the given $ip string is defined and is an ip address, otherwise returns 0.

The check for a valid ip address is currently very simple minded. It merely checks for a dotted-quad with all non-negative numbers with no number larger than 254.

valid_netmask($netmask)

Returns 1 if the given $netmask string is defined and is a netmask, otherwise return 0.

The check for a valid netmask is currently very simple minded. It merely checks for a dotted-quad with all non-negative numbers with no number larger than 255.

AUTHORS

Top

Kevin Johnson <kjj@pobox.com> Rob Brown <rob@roobik.com>

COPYRIGHT

Top


Net-Bind documentation  | view source Contained in the Net-Bind distribution.