diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-07-20 09:13:43 +1200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2017-08-15 08:07:10 +0200 |
commit | 29b3a2b0d1e5abc1ca9f112f680251e34fa6e3af (patch) | |
tree | 31d85a8cf9fe815ce282366a6311bfffc40c0252 /python | |
parent | 3d2bd849f119480f0c1262c00e45179ceaa6e755 (diff) | |
download | samba-29b3a2b0d1e5abc1ca9f112f680251e34fa6e3af.tar.gz |
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 <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
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/dns.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |