From 29e477edbdaf50798d49c85a9caef4d253130575 Mon Sep 17 00:00:00 2001 From: Andy Hawkins Date: Fri, 26 Apr 2019 09:44:03 +0100 Subject: [PATCH] Add comment about adding ':' characters into AAAA records read from TinyDNS files --- octodns/source/tinydns.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/octodns/source/tinydns.py b/octodns/source/tinydns.py index dd9a8b4..f92e41f 100755 --- a/octodns/source/tinydns.py +++ b/octodns/source/tinydns.py @@ -47,6 +47,12 @@ class TinyDnsBaseSource(BaseSource): } def _data_for_AAAA(self, _type, records): + ''' + TinyDNS files have the ipv6 address written in full, but with the + colons removed. This inserts a colon every 4th character to make + the address correct. + ''' + values = [] for record in records: values.append(u":".join(textwrap.wrap(record[0], 4)))