DNS::Oterica::Hub - the center of control for a DNS::Oterica system
version 0.314
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.
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
This is the name of the family whose hosts will be used for NS records for hosts and in SOA lines.
This is the email address to be used as the contact point in SOA lines.
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.
\%arg
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.
my $net = $hub->network($name);
This method finds the named network and returns it. If no network for the given name is registered, an exception is raised.
my @net = $hub->networks;
my $net = $hub->add_network(\%arg);
This registers a new network, raising an exception if one already exists for the given name.
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.
"domain"
This method will return a list of all nodes registered with the system.
Warning: at present this will return only hosts.
my $family = $hub->node_family($family_name);
This method will return the named familiy. If no such family exists, an exception will be raised.
my @families = $hub->node_families;
This method will return all node families. (These are set up during hub initialization.)
Ricardo SIGNES <cpan@semiotic.systems>
This software is copyright (c) 2022 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DNS::Oterica, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DNS::Oterica
CPAN shell
perl -MCPAN -e shell install DNS::Oterica
For more information on module installation, please visit the detailed CPAN module installation guide.