DNS::Oterica::RecordMaker::TinyDNS - a tinydns recordmaker for DNSO.
version 0.314
This role provides logic for generating lines for the tinydns-data program to consume.
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.
my $line = $rec->comment("Hello, world!");
This returns a line that is a one-line commment.
This returns a location line.
Generate an = line, the bread and butter A and PTR record pair for a hostname and IP.
=
Generate an ^ line, for the reverse DNS of an IP address.
^
@lines = $rec->srv({ # We want to produce _finger._tcp.example.com for port 70 domain => 'example.com', service => 'finger', protocol => 'tcp', target => 'f.example.com', port => 70, priority => 10, weight => 20, });
This returns lines for SRV records following RFC 2782. It takes the following special arguments:
domain - the domain offering service service - the well-known service name (http, imaps, finger) protocol - tcp or udp target - the host providing service port - the port the service listens on priority - numeric priority; lower numbers should be used first weight - weight to break priority ties; higher numbers preferred
This returns lines for TXT records for DKIM keys. It takes the following arguments:
domain - the domain selector - the key selector ttl - record time to live tags - the DKIM record tags, a hashref
Any tag given in the hashref will be included. p is required.
p
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.