samba-tool: Fix the IP output of "samba-tool dns serverinfo <some_server>"
commit05cace75c9fae6d4630a747726e305b20ce28917
authorGuenter Kukkukk <linux@kukkukk.com>
Fri, 21 Nov 2014 02:55:25 +0000 (21 03:55 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 18:46:07 +0000 (4 19:46 +0100)
treeea44c61e9486bd3a11a524b36c0812e689b53ea7
parent1e02ce03a015278fd1aba30b0688f44819fcac45
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>
(cherry picked from commit d5af53c5372866a33a0195cabbd64232ac53bad4)
python/samba/netcmd/dns.py