Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 06:58:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 212875] [patch] add -d (domain) flag to hostname
Message-ID:  <bug-212875-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 212875
           Summary: [patch] add -d (domain) flag to hostname
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ben.rubson@gmail.com

Created attachment 175028
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175028&action=
=3Dedit
patch to add -d flag to hostname

Hello,

Here is a patch to add -d flag to hostname command.
-d prints domain only.

# hostname
server.domain.com
# hostname -s
server
# hostname -d
domain.com

Thank you for merging !

Ben

--=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-212875-8>