samba-tool dns query: Allow '*' in names
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 19 Jul 2017 21:13:43 +0000 (09:13 +1200)
committerGarming Sam <garming@samba.org>
Tue, 15 Aug 2017 06:07:10 +0000 (08:07 +0200)
As DNS wild cards are now supported we need to allow '*' characters in
the domain names.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952

python/samba/netcmd/dns.py
selftest/knownfail.d/sambatooldns [deleted file]

index 6f88817d701fbb3d9bf85649e06735e08a89f653..fd8db937a52b38a806b04795679fdf2d22fac191 100644 (file)
@@ -819,7 +819,8 @@ class cmd_query(Command):
         record_type = dns_type_flag(rtype)
 
         if name.find('*') != -1:
-            raise CommandError('Wildcard searches not supported. To dump entire zone use "@"')
+            self.outf.write('use "@" to dump entire domain, looking up %s\n' %
+                            name)
 
         select_flags = 0
         if authority:
diff --git a/selftest/knownfail.d/sambatooldns b/selftest/knownfail.d/sambatooldns
deleted file mode 100644 (file)
index b60e9b2..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# Support for DNS wildcared entries by samba_tool dns sub command
-# Will fail until implemented.
-^samba.tests.samba_tool.dnscmd.samba.tests.samba_tool.dnscmd.DnsCmdTestCase.test_dns_wildcards\(ad_dc:local\)