Compare DNS names case insensitively.

This commit is contained in:
Feanil Patel 2014-11-12 14:31:53 -05:00
parent 38c186d1e5
commit 4a195c64f1

View file

@ -280,7 +280,7 @@ def main():
decoded_name = rset.name.replace(r'\052', '*')
decoded_name = decoded_name.replace(r'\100', '@')
if rset.type == type_in and decoded_name == record_in:
if rset.type == type_in and decoded_name.lower() == record_in.lower():
found_record = True
record['zone'] = zone_in
record['type'] = rset.type