Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 22:12:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194755] w -n does not replace all hostnames with IP-adresses
Message-ID:  <bug-194755-8-mF1cShMUS7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-194755-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-194755-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194755

oliver@beefrankly.org changed:

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

--- Comment #1 from oliver@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194755-8-mF1cShMUS7>