- Package:
- src:debian-edu-install
- Source:
- debian-edu-install
- Submitter:
- Dominik George
- Date:
- 2026-08-21 19:15:02 UTC
- Severity:
- normal
- Tags:
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-----
[Dominik George] 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
Hi, 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".
Hi Petter,
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.
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/682ac86dd03658eaab8a5d0a08ca03cecc184ad3 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/234d3b0ca8b6da45830a9cfc95682f6449cda3ba ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hi, I agree with the above approach (although I use FQDN quite regularly in /etc/hostname myself). Let's stick to the documentation (the man page hasn't changed since Nik quoted it for this bug report). Should be resolved via https://salsa.debian.org/debian-edu/debian-edu-config/-/merge_requests/51 Mike
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/89585f25a24ed8763a8f6e986808d729e4045865 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/4c458e5a21db1b79e1ca5954799b26f325467223 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394
Hello, Bug #893394 in debian-edu-config reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/62717ef06d87e14174c89d83b434dbcbe88c0d01 ------------------------------------------------------------------------ share/debian-edu-config/d-i/pre-pkgsel: Use 'tjener' in /etc/hostname and derive FQDN from /etc/hosts. (Closes: #893394). ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/893394