From: Gary Lockyer Date: Wed, 19 Jul 2017 21:13:43 +0000 (+1200) Subject: samba-tool dns query: Allow '*' in names X-Git-Tag: tdb-1.3.15~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29b3a2b0d1e5abc1ca9f112f680251e34fa6e3af;p=thirdparty%2Fsamba.git samba-tool dns query: Allow '*' in names As DNS wild cards are now supported we need to allow '*' characters in the domain names. Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952 --- diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py index 6f88817d701..fd8db937a52 100644 --- a/python/samba/netcmd/dns.py +++ b/python/samba/netcmd/dns.py @@ -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 index b60e9b21e73..00000000000 --- a/selftest/knownfail.d/sambatooldns +++ /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\)