TinyDNS::Record - Parse a single TinyDNS Record.
This module provides an object API to a single TinyDNS record/line.
It is not quite valid because:
We ignore SOA records, which Amazon would handle for us.
Our TXT records handling uses "T" not ":".
Our SRV records are non-standard.
Our MX record handling allows a name to be set without IP.
There are probably other differences.
Constructor, which sets the type of the object.
The constructor is expected to be passed a valid line of text which describes a single record, for example +example.example.com:1.2.3.4:200.
+example.example.com:1.2.3.4:200
Return the text that this record was created with.
Is this record valid? Return 0 or 1 as appropriate.
Return the type this record has, such as "A", "AAAA", "NS", etc.
Return the TTL of this recrd.
If no TTL was explicitly specified we default to 300 seconds, or five minutes.
Get the name of this record.
Get the value of this record.
Add a new value to the existing record.
This is used by the TinyDNS::Reader::Merged module.
Convert the record to a string, suitable for printing.
Return a consistent hash of the record.
Steve Kemp <steve@steve.org.uk>
Copyright (C) 2014-2015 Steve Kemp <steve@steve.org.uk>.
This code was developed for an online Git-based DNS hosting solution, which can be found at:
https://dns-api.com/
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
To install TinyDNS::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TinyDNS::Reader
CPAN shell
perl -MCPAN -e shell install TinyDNS::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.