summaryrefslogtreecommitdiffstats
path: root/python/samba/netcmd/dns.py
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-08-02 18:53:56 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-11-30 14:22:57 +1100
commit8e7f8a2ab165ed0ab5c46e0131364fa91c309164 (patch)
tree7f858b1472cb3a6cb07ad26c21ae0ad0d1eb2bf2 /python/samba/netcmd/dns.py
parentf62683956a3b182f6a61cc7a2b4ada2e74cde243 (diff)
downloadsamba-8e7f8a2ab165ed0ab5c46e0131364fa91c309164.tar.gz
samba-8e7f8a2ab165ed0ab5c46e0131364fa91c309164.tar.xz
samba-8e7f8a2ab165ed0ab5c46e0131364fa91c309164.zip
netcmd/dns: Catch wildcard patterns when querying for name
DNS query should either be '@' to represent entire zone or a fixed string and not wildcard search pattern. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'python/samba/netcmd/dns.py')
-rw-r--r--python/samba/netcmd/dns.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py
index 137cd989f0..de0c94d516 100644
--- a/python/samba/netcmd/dns.py
+++ b/python/samba/netcmd/dns.py
@@ -955,6 +955,9 @@ class cmd_query(Command):
versionopts=None):
record_type = dns_type_flag(rtype)
+ if name.find('*') != -1:
+ raise CommandError('Wildcard searches not supported. To dump entire zone use "@"')
+
select_flags = 0
if authority:
select_flags |= dnsserver.DNS_RPC_VIEW_AUTHORITY_DATA