On 10/27/23 07:59, Pocket wrote:
Not a systemd luver nor expert. Someone suggested that if I was using dotted names, then I should edit (as sudo) /etc/hostname which I have now done t add the FQDN name of coyote.home.arpa. but: gene@coyote:/etc$ sudo nano hostname (and add .home.arpa to the alias name it had)On 10/27/23 07:50, Greg Wooledge wrote:On Fri, Oct 27, 2023 at 07:29:20AM -0400, Pocket wrote:*What* is "all gone"? Show us commands and their output, and then explainOn 10/27/23 07:12, gene heskett wrote:I tried to change just this machine to see how its done, and managed toget all the right answers, which did not affect my local network since Igenerally use the alias name for an ssh or sshfs login, but on a reboot its all gone. So how the heck do we do that so it survives a reboot?why the output is not what you expected./etc/hostsIf you're using short-form hostnames like this: unicorn:~$ hostname unicorn then yeah, that's all you need. If you're using long-form hostnames (with dots in them), then you also need to configure /etc/hostname. I use the short-form hostnames, so mine is simply: unicorn:~$ cat /etc/hostname unicorn Couldn't be simpler, really.Are you referring to the domain name or FQDN?
[sudo] password for gene: gene@coyote:/etc$ domainname (none) gene@coyote:/etc$ hostname coyote gene@coyote:/etc$So instead of giving me static cuz I'm not doing it right, show me the right way!
Thank you. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis