samba-tool: Fix the IP output of "samba-tool dns serverinfo <some_server>"
commitd5af53c5372866a33a0195cabbd64232ac53bad4
authorGuenter Kukkukk <linux@kukkukk.com>
Fri, 21 Nov 2014 02:55:25 +0000 (21 03:55 +0100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 26 Nov 2014 00:22:05 +0000 (26 01:22 +0100)
tree6bd32e70742e22c446a2266ef5dd80957b028efd
parent4bda589c8e68cd66ca3b0ea9496cb1b11febcae6
samba-tool: Fix the IP output of "samba-tool dns serverinfo <some_server>"

Avoid hardcoded IP-strings, use standard python IP functions to format
IPv4 and IPv6 addresses correctly.

I have removed the display of the port number.
MS-DNSP 2.2.3.2.2.1 DNS_ADDR: (from May 15, 2014)
Port Number (2bytes): Senders MUST set this to zero, and receivers MUST ignore
it.

Signed-off-by: Guenter Kukkukk <linux@kukkukk.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
python/samba/netcmd/dns.py