Skip to content

Commit

Permalink
corrected (?) handling of TXT record uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
metagriffin committed Dec 3, 2014
1 parent 54b79bf commit ce068a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdns/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ def updateRecord(ctxt, records, record):
update.Priority = record.rdata.preference
update.Content = record.rdata.exchange.to_text()

if update.Type == 'TXT':
# todo: is this how they should all be done?...
update.Content = ' '.join(record.rdata.strings)

# PowerDNS does not seem to support absolute DNS names... ugh.
update.Name = reldom(update.Name)
update.Content = ' '.join([reldom(comp) for comp in update.Content.split(' ')])
Expand Down

0 comments on commit ce068a8

Please sign in to comment.