🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89140

Re: debugging mailpost

#89140
From: Grant Taylor
Date: Sun, 23 Jan 2022 18:19
35 lines
2274 bytes
On 1/23/22 6:50 AM, jdanield wrote:
> As fdqn, I often wonder id it's the domain name (ie dodin.fr.nf) or 
> including the hostname (here: ns507557)

FQDN is the Fully Qualified Domain Name, meaning that it's supposed to 
be the entire name.  E.g. ns507557.dodin.fr.nf from your example.

IMHO, the output of `hostname` (without any parameters) /should/ be the 
FQDN.  Some people / Distributions (Debian) say that the output of 
`hostname` should be unqualified.

There is a reason that Bash and Zsh have different variables for the 
base name and the FQDN for use in the prompt and elsewhere.  These 
variables have the same value if the hostname doesn't contain the FQDN 
and have the expected different values if the hostname does contain the 
FQDN.

Bash:
    \h   the hostname up to the first `.'
    \H   the hostname

Zsh:
    %m   The hostname up to the first `.'.
    %M   The full machine hostname.

There's also the fact that every commercial Unix distribution that I've 
checked have the FQDN in the hostname.

ProTip:  use the fqdn for the hostname.



-- 
Grant. . . .
unix || die
Technical Details
Message-ID: <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com> <ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info> <ssjmfs$lso$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 11:19:35 -0700
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com> <ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info> <ssjmfs$lso$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: TNet Consulting
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jan 2022 18:19:29 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="14770"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
In-Reply-To: <ssjmfs$lso$1@dont-email.me>
Content-Language: en-US
Lines: 34