Bug#893394: debian-edu-install: FQDN wrongly ends up in /etc/hostname on tjener
Hi Petter, On Sun, Mar 18, 2018 at 07:17:06PM +0100, Petter Reinholdtsen wrote: > [Dominik George] > > However, on Debian systems, only the short hostname must be in > > /etc/hostname > > Why do you believe this to be true? The /etc/hostname in Skolelinux / > Debian Edu is intentionally FQDN. Personally, based on many years of > large scale *nix system administration, I believe it is the only > sensible thing to store there. > > In short, it is no mistake the FQDN is stored there. I think that depends on how you define "mistake". Reading hostname(1): FILES /etc/hostname Historically this file was supposed to only contain the hostname and not the full canonical FQDN. Nowadays most software is able to cope with a full FQDN here. This file is read at boot time by the system initialization scripts to set the hostname. /etc/hosts Usually, this is where one sets the domain name by aliasing the host name to the FQDN. I know this is not what most Unix admins expect because Debian diverts from the standard here, or used to. However, as the manual says, "most software is able to cope with a full FQDN here". My point of view is that we should rather stay in line with the Debian installer, and "most software" is not "all software". I have recently at least seen one backup tool fail because of this (although I agree it shouldn't break). So, my opinion is: If there is no good reason in Debian Edu (as in, software breaking, not beliefs), we should strip the domain part there like Debian itself normally does. -nik signature.asc Description: PGP signature
Bug#893394: debian-edu-install: FQDN wrongly ends up in /etc/hostname on tjener
Hi, >Why do you believe this to be true? The /etc/hostname in Skolelinux / >Debian Edu is intentionally FQDN. Personally, based on many years of >large scale *nix system administration, I believe it is the only >sensible thing to store there. > >In short, it is no mistake the FQDN is stored there. Depends how you define "mistake". You are right for pretty much everything except Debian. Debian has always had the short name in there, c.f. https://manpages.debian.org/stretch/hostname/hostname.1.en.html This also states that "most software can cope" with an FQDN there, but primarily it documents that the short name is the right thing to put there. We should work with documented behaviour rather than a hope involving the terms "most" and "cope with" rather than "all" and "expect". -nik
Bug#893394: debian-edu-install: FQDN wrongly ends up in /etc/hostname on tjener
[Dominik George] > However, on Debian systems, only the short hostname must be in > /etc/hostname Why do you believe this to be true? The /etc/hostname in Skolelinux / Debian Edu is intentionally FQDN. Personally, based on many years of large scale *nix system administration, I believe it is the only sensible thing to store there. In short, it is no mistake the FQDN is stored there. -- Happy hacking Petter Reinholdtsen
Bug#893394: debian-edu-install: FQDN wrongly ends up in /etc/hostname on tjener
Source: debian-edu-install Version: 1.916 Severity: normal -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 When installing a tjener, the name tjener.intern ends up in the file /etc/hostname. However, on Debian systems, only the short hostname must be in /etc/hostname, the FQDN is always determined by resolving the short name to an IP address and reverse-resolving that back into an FQDN. -BEGIN PGP SIGNATURE- iQJ4BAEBCABiFiEEPJ1UpHV1wCb7F/0mt5o8FqDE8pYFAlqufKMxGmh0dHBzOi8v d3d3LmRvbWluaWstZ2VvcmdlLmRlL2dwZy1wb2xpY3kudHh0LmFzYxIcbmlrQG5h dHVyYWxuZXQuZGUACgkQt5o8FqDE8pZFWRAAwE2O4+Z+aMy8DgXpbu0mcGsb/OoL 3oEIbrsy7pzD79FhYn7A+U4o+EEOYImvaGMwRB0ZV5OXIusNeqgC96QxkDuY/n9j 7TP9Sv8xoOq/B8G0FqQ0/HVH5pd0MjwT6LuqMcXUMfpUrSm4lxLBsdSLHlQAaCEC 1ydflCkrJdDYxkEz2YnItea+uKPqvhUnzLqV70zSK94diMSy6iw5pLipHpfomp2V kSbQZ6sYFLgRT8EAnmTK0RWxJKnyl+yeY2WQ1rEHwnQXL2J0SGKrLsrP758DX3so MH5LM3D+v77W7KQXxS1UIg1zNaPBVZPbPoyo4rPUr+qUQ+Az5SwjpzqQnX1Xf1Mm gdtdirln/F+86vtPae3Mm5qJVPNloTqhxvBxGqmxRanOEUC3Q0gh5dnosB4WKgLB o1UsP5QZ4uGERJqwDBcXNBvTwkLt+lhJruHUlK83OaCD2OldVM2i7X2KdeYC7yeR Gv6LmeqfSvg6D7tphAyM2xDyf9dq97fm2Ji710vifSpu2Z91+fMGpEGIyPAKbMd+ 3maqaMbHE67lZFqSKYN8Y5sLdC3MgRm6foaguFt6AR7o39nHJp0sAGMkGgI2yYwW M0NVegPfDOh6qqGQCwF3z5Ym6OtkIKvd8B1Rki2BYjbCzqskMvBDLFEBQ7YDFgPJ PApREOXMSOOVktI= =ps3i -END PGP SIGNATURE-