🐛 fix DNAME

This commit is contained in:
otthorn 2021-04-14 15:56:57 +02:00
parent d8d67379e0
commit e0ce529406

6
lib.py
View file

@ -308,10 +308,10 @@ def dname_records_handler(re2o_zone, dns_zone):
DNAME_obj = DNAME.DNAME(
dns.rdataclass.IN,
dns.rdatatype.DNAME,
alias
zone
)
add_to_zone(dns_zone, zone, DNAME_obj)
add_to_zone(dns_zone, alias, DNAME_obj)
def pass_handler(zone, records):
@ -330,6 +330,6 @@ HANDLERS = {
"a_records": a_records_handler,
"aaaa_records": aaaa_records_handler,
"cname_records": cname_records_handler,
"dname_records": pass_handler,
"dname_records": dname_records_handler,
"name": pass_handler,
}