[Bug 236014] w -nn doesn't resolve hostname to ipv6 numeric if host has v4 and v6 entry.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 25 03:56:11 UTC 2019


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

            Bug ID: 236014
           Summary: w -nn doesn't resolve hostname to ipv6 numeric if host
                    has v4 and v6 entry.
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: nistor at snickers.org

When trying to display numeric entries for hosts using 'w' it will not resolve
ipv6 related hostnames to ipv6 nuemric entries if the host has the same
hostname entry with resolution on v4 and v6.

For example:

nistor at spike:~> w -n nistor
10:50PM  up 43 days, 21:36, 24 users, load averages: 0.31, 0.27, 0.21
USER       TTY      FROM                                      LOGIN@  IDLE WHAT
nistor     pts/19   cpexxxxxxxxxxxx-cmxxxxxxxxxxxx.cpe.net.c Sat02PM     2
-tcsh (tcsh)
nistor     pts/32   v6host.domain.com                        10:47PM     2
-tcsh (tcsh)

whereas:
nistor at spike:~> w -nn nistor
10:50PM  up 43 days, 21:36, 24 users, load averages: 0.31, 0.27, 0.21
USER       TTY      FROM                                      LOGIN@  IDLE WHAT
nistor     pts/19   99.230.xxx.xxx                           Sat02PM     3
-tcsh (tcsh)
nistor     pts/32   v6host.domain.com                        10:47PM     3
-tcsh (tcsh)


If the host is an ipv6 host with no ipv4 resolution to it then the display
works fine:

nistor at spike:~> w david
10:55PM  up 43 days, 21:41, 24 users, load averages: 0.31, 0.23, 0.19
USER       TTY      FROM                                      LOGIN@  IDLE WHAT
david      pts/12   r2.ip6.domain.com                        22Jan19  9:12
-/bin/tcsh
nistor at spike:~> w -n david
10:55PM  up 43 days, 21:41, 24 users, load averages: 0.31, 0.23, 0.19
USER       TTY      FROM                                      LOGIN@  IDLE WHAT
david      pts/5    2001:XXX:yyyy:f000::2                   22Jan19 28days
alpine

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


More information about the freebsd-bugs mailing list