🐛 fix DNAME
This commit is contained in:
parent
d8d67379e0
commit
e0ce529406
1 changed files with 3 additions and 3 deletions
6
lib.py
6
lib.py
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue