[Bug 194755] w -n does not replace all hostnames with IP-adresses

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 18 22:12:19 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194755

oliver at beefrankly.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver at beefrankly.org

--- Comment #1 from oliver at beefrankly.org ---
w does only lookup the IP if there is only one A/AAAA record. if there are
multiple records (this means A and A or AAAA and AAAA but also A and AAAA), the
lookup is bypassed. You may further call this an IPv6 unawareness of some kind,
if there is exactly one IPv4 and one IPv6 entry.

The cause of this is the usage of utmpx. Which means there is only a hostname
in the database, no ip address.

You are stranded if you do not have access to the underlying protocol family or
have multiple A/AAAA-Records. The user MAY be connected via a totally different
IP/Machine instead the IP displayed. So the current strategy is: instead you
display wrong data, you display the original data unresolved. 

In fact I believe this is exactly the point why other implementations are
missing this parameter.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list