Top comment gets to choose my hostname

moonleay@feddit.de to Linux@lemmy.ml – 95 points –

After nuking my old install, I am in need of a hostname. Top comment chooses it.

87

You are viewing a single comment

lemmy.made.me.look.at.this.each.time.i.open.a.terminal

Hostnames can be up to 64 characters long in Linux.

This seems to be the most popular one, though I can't use it in the way its written here, because it will fuck up DNS. I'll substitute the dots with dashes and then it should work.

I'm pretty sure you can use dots in record data. I know you can use them in zone names.

Hostnames can be up to 64 characters long in Linux.

But should they?

^No

Most shells usually default to a truncated version of the hostname that only uses the hostname up to the first dot. Of course one can change that by setting the PS1 env var and using (in case of bash) \H instead of \h.

I tried with emojiea and it worked. what would break it though?

edit: nvm something broke after a reboot. neofetch reports the hostname as 'archlinux' instead of whatever is inside /etc/hostname. matlab drive connector reset and initializer dialog poped up which it did not do before.