From c800f853ac891f7de5a150e286fd8db2d4fe7dfb Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Fri, 31 May 2019 12:53:00 +0200 Subject: [PATCH] Compare records based on lowercase representation --- bin/dns-sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dns-sync b/bin/dns-sync index e71c44e..f17045d 100755 --- a/bin/dns-sync +++ b/bin/dns-sync @@ -44,8 +44,8 @@ def mergeDomains(zoneData, pdnsData): found = False pdnsDom = list(filter(lambda _x: _x['name'] == domain and _x['type'] == rrType, rrData)) if len(pdnsDom) > 0: - rrSet = set(_x['content'] for _x in pdnsDom[0]['records']) - if rrSet == set(records): + rrSet = set(_x['content'].lower() for _x in pdnsDom[0]['records']) + if rrSet == set(record.lower() for record in records): found = True if not found: