this is needed for when DNSFOREST and DNSDOMAIN are the same
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
update_list = []
dns_list = []
+dup_set = set()
+
# read each line, and check that the DNS name exists
for line in file:
line = line.strip()
continue
if d.type == 'AAAA' and len(IP6s) == 0:
continue
- dns_list.append(d)
+ if str(d) not in dup_set:
+ dns_list.append(d)
+ dup_set.add(str(d))
# now expand the entries, if any are A record with ip set to $IP
# then replace with multiple entries, one for each interface IP