On Fri, Mar 27, 2009 at 9:47 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On Friday 27 March 2009 14:46:32 Greg Stark wrote:
>> Regarding using the hostname of the system... There's no such thing.
>> Interfaces have names, hosts can have multiple interfaces so the can
>> have multiple names...
>
> But there is `hostname` and `hostname --fqdn`, both of which are well-defined
> independent of a connection.
But they aren't guaranteed to return anything useful, and IME often don't.
...Robert