Oliver Gorwits > App-Netdisco-2.018000 > App::Netdisco::Util::DNS

Download:
App-Netdisco-2.018000.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: App-Netdisco-2.029007

NAME ^

App::Netdisco::Util::DNS

DESCRIPTION ^

A set of helper subroutines to support parts of the Netdisco application.

There are no default exports, however the :all tag will export all subroutines.

EXPORT_OK ^

hostname_from_ip( $ip )

Given an IP address (either IPv4 or IPv6), return the canonical hostname.

Returns undef if no PTR record exists for the IP.

ipv4_from_hostname( $name )

Given a host name will return the first IPv4 address.

Returns undef if no A record exists for the name.

syntax highlighting: