Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record.

This commit is contained in:
Kamil Madac 2015-06-28 21:50:11 +02:00
parent 6288d44581
commit f9a6c898b4

View file

@ -195,7 +195,7 @@ def core(module):
records = domain.records()
at_record = None
for record in records:
if record.name == "@":
if record.name == "@" and record.record_type == 'A':
at_record = record
if not at_record.data == getkeyordie("ip"):