Re: Can unison better help with renamed hosts?

Greg Troxel <[email protected]> Wed, 24 Apr 2024 09:25:39 -0400
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
> This is indeed a good validation to make! But I checked, from inside and
> outside the network, and the same values are printed:
>
> #> hostname
> bool
> #> hostname --fqdn
> bool.domain-name-here.de

The hostname command was introduced in 4.2BSD and I think has
traditionally printed the full value of the system value hostname.  But
there is also 'domainname', and I'd suggest reading the man page and
figuring out what's really doing on.

The real question is gethostname(3) as wrapped by ocaml.  POSIX says:

  https://urldefense.com/v3/__https://pubs.opengroup.org/onlinepubs/9699919799/functions/gethostname.html__;!!IBzWLUs!XRj5WE-B2lhYSy06BUxCdhmZNHQz1WDwR5pB6MBP4pYVRwNxxFWcroey_XvkT9EeyyDblquZmgWDHWCYYg$ 


But, it now seems that you are syncing from a laptop which is moving and
probably changing hostname.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].