mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Replace [ZONE] placeholder with domain_name (#960)
This commit is contained in:
parent
bf83662108
commit
f96103db79
@ -165,6 +165,8 @@ class Record(object):
|
||||
for record in submitted_records:
|
||||
# Format the record name
|
||||
#
|
||||
# Translate template placeholders into proper record data
|
||||
record['record_data'] = record['record_data'].replace('[ZONE]', domain_name)
|
||||
# Translate record name into punycode (IDN) as that's the only way
|
||||
# to convey non-ascii records to the dns server
|
||||
record['record_name'] = record['record_name'].encode('idna').decode()
|
||||
|
Loading…
Reference in New Issue
Block a user