samba-tool dns: Don't use "localhost" to connect to local host
authorKai Blin <kai@samba.org>
Wed, 14 Nov 2012 10:32:06 +0000 (11:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 12:12:15 +0000 (13:12 +0100)
commit2af84e6d6d1b23b2be0d7999a28fa2ba8c385865
tree23ff501a0f5ec0980e660b57b1f1230b351f7141
parent23211c178b1362d322b26ca3c46338b67aa2eed5
samba-tool dns: Don't use "localhost" to connect to local host

Calling "samba-tool dns <cmd> localhost" provokes a stacktrace.

This just makes 'samba-tool dns <cmd> localhost' work and doesn't fix
the underlying issue, but I don't see it causing any harm (unless you
don't have an ipv4 localhost, I guess).

Signed-off-by: Kai Blin <kai@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Nov 16 13:18:14 CET 2012 on sn-devel-104
(cherry picked from commit 10b6cceb1f0f09c7a8f5fc8882fdc3852d11951f)

Fix bug #9399 - 'samba-tool dns serverinfo localhost' returns 'Memory allocation
error'.
source4/scripting/python/samba/netcmd/dns.py