summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/dns.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/dns.py b/source4/scripting/python/samba/netcmd/dns.py
index 74b649ee1e..2ab4129331 100644
--- a/source4/scripting/python/samba/netcmd/dns.py
+++ b/source4/scripting/python/samba/netcmd/dns.py
@@ -491,13 +491,13 @@ def dns_record_match(dns_conn, server, zone, name, record_type, data):
if rec.data == data:
found = True
elif record_type == dnsp.DNS_TYPE_PTR:
- if rec.data.str.rstrip('.') == data.rstrip('.'):
+ if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
elif record_type == dnsp.DNS_TYPE_CNAME:
- if rec.data.str.rstrip('.') == data.rstrip('.'):
+ if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
elif record_type == dnsp.DNS_TYPE_NS:
- if rec.data.str.rstrip('.') == data.rstrip('.'):
+ if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
if found:
rec_match = rec