I am generating zone files for the route-53 hosted zones using boto3 and dnspython library.I am succesfully able to generate A/CNAME/MX/TXT Record Sets using dnspython library(1.14.0). However ,since it does not have any implementation of ALIAS TARGET (A Record).I am getting this error:
**Traceback (most recent call last):
File "/home/work/dns_check.py", line 156, in <module>
rdataset = add_record_type_A(zone, name, address)
File "/home/work/dns_check.py", line 28, in add_record_type_A
rdata = rd_A.A(IN, A, address=address)
File "/usr/local/lib/python2.7/dist-packages/dns/rdtypes/IN/A.py", line 34, in __init__
dns.ipv4.inet_aton(address)
File "/usr/local/lib/python2.7/dist-packages/dns/ipv4.py", line 51, in inet_aton
raise dns.exception.SyntaxError
dns.exception.SyntaxError: Text input is malformed.**
It is because ALIAS is like "alias.testdomain.com" which is not a IPV4 supportive. I am able to generate it by editing the python library.Is there any other way around?
Thanks in advance