1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add comment about adding ':' characters into AAAA records read

from TinyDNS files
This commit is contained in:
Andy Hawkins
2019-04-26 09:44:03 +01:00
parent c89b0dbabd
commit 29e477edbd

View File

@@ -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)))