Merge pull request #879 from feanil/feanil/case_insensitive_compare
Compare DNS names case insensitively.
This commit is contained in:
commit
618806aeeb
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ def main():
|
||||||
decoded_name = rset.name.replace(r'\052', '*')
|
decoded_name = rset.name.replace(r'\052', '*')
|
||||||
decoded_name = decoded_name.replace(r'\100', '@')
|
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
|
found_record = True
|
||||||
record['zone'] = zone_in
|
record['zone'] = zone_in
|
||||||
record['type'] = rset.type
|
record['type'] = rset.type
|
||||||
|
|
Loading…
Reference in a new issue