domain stripping was not limited to the end of a name

This commit is contained in:
Kees Monshouwer
2018-04-12 02:20:49 +02:00
committed by mind04
parent a12af5345d
commit df9e392e26
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ def display_record_name(data):
if record_name == domain_name:
return '@'
else:
return record_name.replace('.'+domain_name, '')
return re.sub('\.{}$'.format(domain_name), '', record_name)
def display_master_name(data):