I think this bug can be closed, recent netstat versions have the -W (or --wide) option to show the full adresses.
To restore tabulation alignment, a wrapper can be used: netstat -tunap --wide | \ sed -e '1d' -e '2s/ \(Address\)/_\1/g' -e '2s/\(Program\) /\1_/' -e 's/\([^0-9]*:\) /\1/' -e '/^udp/s/:\*/:\* -/' | \ column -t Also, "ss" could be used instead of netstat, ss does not truncate the addresses. ** Changed in: net-tools (Ubuntu) Status: Confirmed => Fix Released ** Changed in: net-tools (Debian) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to net-tools in Ubuntu. https://bugs.launchpad.net/bugs/511401 Title: netstat doesn't display ipv6 addresses correctly (they are truncated) Status in net-tools package in Ubuntu: Fix Released Status in net-tools package in Debian: Fix Released Bug description: I just installed miredo and begun to use ipv6. I've noticed that netstat is incapable to display correctly the sockets when it is instructed to display the ipv6 address instead of the name, thus making it useless. the command issued is netstat -n --tcp the result is something similar to: Active Internet connections (senza server) Proto Recv-Q Send-Q Local Address Foreign Address State tcp6 0 48 2001:xxxx:yyyy:324:22222 2001:0:zzzz:64c:3:55249 ESTABLISHED tcp6 0 0 2001:xxxx:yyyy:324::2:80 2001:0:zzzz:64c:3:51862 TIME_WAIT (please note that xxxx yyyy zzzz masks real part of the ipv6 address because of privacy) the result shown by netstat is incomplete, because the ipv6 addresses are truncated in half thus making the netstat command completely useless (I cannot understand who's connecting or whom I'm connecting with). enlarging the terminal doesn't help. the question: is it a bug? is there something I can do? thanks a lot ndv To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/511401/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp