autodetect API by length of API key

This commit is contained in:
tengel 2017-09-29 10:20:01 -05:00
parent 57e97f1821
commit 0c4aed99a2
4 changed files with 61 additions and 16 deletions

View file

@ -13,13 +13,15 @@ L<https://freedns.afraid.org>; the software goals are for simplicity,
flexibility and configurability while using the minimal system tools
installed with most distributions.
Version 1.x = FreeDNS API v1
Version 2.x = FreeDNS API v2
If upgrading from API v1 to v2, a manual action is required on the
FreeDNS website to generate a new API key for each domain name. See
L<https://freedns.afraid.org/dynamic/v2/> for more information.
By default, petrified will use the length of the API key to automatically
choose the APIv1 or APIv2 URL; this can be overridden in the configuration
file to force a specific version, as the v1 key length is variable but the
v2 key length is fixed at 24 chars.
=head1 OPTIONS
=over 4