Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2022 15:10:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261005] hostname -d is not resolved domain information correctly
Message-ID:  <bug-261005-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 261005
           Summary: hostname -d is not resolved domain information
                    correctly
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bugzilla@richber.net

Description

hostname -d is not resolved domain information correctly when used a subdom=
ain
in the hostname


Steps to reproduce the issue

root@beastie:~ # grep hostname /etc/rc.conf
hostname=3D"beastie.labs.example.com"

root@beastie:~ # hostname
beastie.labs.example.com

root@beastie:~ # hostname -s
beastie

root@beastie:~ # hostname -d
lple.commple.com

root@beastie:~ # hostname beastie.example.com

root@beastie:~ # hostname -d
example.com

root@beastie:~ # hostname beastie.labs.example.com

root@beastie:~ # hostname -d
lple.commple.com


Results received

root@beastie:~ # hostname -d
lple.commple.com


Results expected

root@beastie:~ # hostname -d
labs.example.com

--=20
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-261005-227>