DNS::Oterica::Hub - the center of control for a DNS::Oterica system


DNS-Oterica documentation  | view source Contained in the DNS-Oterica distribution.

Index


NAME

Top

DNS::Oterica::Hub - the center of control for a DNS::Oterica system

VERSION

Top

version 0.100001

OVERVIEW

Top

The hub is the central collector of DNS::Oterica data. All new entries are given to the hub to collect. The hub takes care of preventing duplicates and keeping data synchronized.

ATTRIBUTES

Top

ns_family

This is the name of the family whose hosts will be used for NS records for hosts and in SOA lines.

hostmaster

This is the email address to be used as the contact point in SOA lines.

METHODS

Top

domain

  my $new_domain = $hub->domain($name => \%arg);

  my $domain = $hub->domain($name);

This method will return a domain found by name, or if \%arg is given, will create a new domain.

If no domain is found and \%arg is not given, an exception is raised.

If \%arg is given for a domain that already exists, an exception is raised.

location

  my $loc = $hub->location($name);

This method finds the named location and returns it. If no location for the given name is registered, an exception is raised.

add_location

  my $loc = $hub->add_location(\%arg);

This registers a new location, raising an exception if one already exists for the given name.

host

  my $host = $hub->host($domain_name, $hostname);

  my $new_host = $hub->host($domain_name, $hostname, \%arg);

This method will find or create a host, much like the domain method.

nodes

This method will return a list of all nodes registered with the system.

Warning: at present this will return only hosts.

node_family

  my $family = $hub->node_family($family_name);

This method will return the named familiy. If no such family exists, an exception will be raised.

node_families

  my @families = $hub->node_families;

This method will return all node families. (These are set up during hub initialization.)

AUTHOR

Top

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE

Top


DNS-Oterica documentation  | view source Contained in the DNS-Oterica distribution.