Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: L A Walsh Newsgroups: gnu.bash.bug Subject: Re: [PATCH] Fix \H: Use getaddrinfo to get full hostname Date: Wed, 24 Jul 2019 11:42:30 -0700 Lines: 25 Approved: bug-bash@gnu.org Message-ID: References: <20190724135835.110473-1-whissi@gentoo.org> <454afb04-c18a-1b82-d869-34539c194b3d@case.edu> <5D38A696.4060104@tlinx.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1563993761 8054 209.51.188.17 (24 Jul 2019 18:42:41 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Thomas Deutschmann Envelope-to: bug-bash@gnu.org User-Agent: Thunderbird In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 173.164.175.65 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <5D38A696.4060104@tlinx.org> X-Mailman-Original-References: <20190724135835.110473-1-whissi@gentoo.org> <454afb04-c18a-1b82-d869-34539c194b3d@case.edu> Xref: csiph.com gnu.bash.bug:15236 On 2019/07/24 07:38, Thomas Deutschmann wrote: > Can you tell me more about your system and how you (your administrator) > set up your system so that hostname will return FQDN? > My linux box has 2 interfaces, internal & external, with different domain names on each. While hostname and hostname-f both return the shortname that is common to both domain names, i.e. foo.external.tld (on eth2) foo.in.external.tld (on br0=bridge(eth0+eth5)) & hostname returns 'foo' & domainname returns 'external.tld'. My resolve.conf has domain set to 'in.external.tld'.