Browse Source

Compare records based on lowercase representation

Sebastian Lohff 1 year ago
parent
commit
c800f853ac
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bin/dns-sync

+ 2
- 2
bin/dns-sync View File

@@ -44,8 +44,8 @@ def mergeDomains(zoneData, pdnsData):
44 44
         found = False
45 45
         pdnsDom = list(filter(lambda _x: _x['name'] == domain and _x['type'] == rrType, rrData))
46 46
         if len(pdnsDom) > 0:
47
-            rrSet = set(_x['content'] for _x in pdnsDom[0]['records'])
48
-            if rrSet == set(records):
47
+            rrSet = set(_x['content'].lower() for _x in pdnsDom[0]['records'])
48
+            if rrSet == set(record.lower() for record in records):
49 49
                 found = True
50 50
 
51 51
         if not found:

Loading…
Cancel
Save