[opensuse-factory] /etc/hostname on Tumbleweed: Include the domain name?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all, I recently installed a FreeBSD machine, where the hostname according to the documentation was to be set to the full FQDN in /etc/rc.conf. I started looking around on how this should be done on my openSUSE tumbleweed machines, where systemd or rather hostnamectl has it's fingers in the game (/etc/hostname) I found a mail from lennart, who said /etc/hostname should not contain the FQDN. [1] The systemd manuals apparently state there should not be dots in the argument to hostnamectl [2]. I found different tutorials, where they use the FQDN [3]. I found nothing about openSUSE. So I am confused. How do the various things on openSUSE expect the output of 'hostname' to be? FQDN or not? I do not care one way or the other, I just want to get this cleared up and adjust my systems to the 'new' way of handling this. How does Yast handle this? (I have no test system at hand to mess up atm) Thanks in advance. Regards, Johannes [1] > http://lists.freedesktop.org/archives/systemd-devel/2013-February/008899.htm... [2]
[3]
http://www.certdepot.net/rhel7-get-started-systemd/ (in paragraph Miscellaneous)
- -- Have you ever noticed that the Klingons are all speaking unix? 'Grep ls awk chmod.'' 'Mknod ksh tar imap.' 'Wall fsck yacc!' (that last is obviously a curse of some sort). Gandalf Parker -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlTxwbIACgkQzi3gQ/xETbLqngCgjgD8W0NfpM3MwtHdy//VGCPx Go8AoIofAxkuDJRwzG7D72LoH11WWQVG =tUrn -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 02/28/2015 08:25 AM, Johannes Kastl wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dear all,
How does Yast handle this? (I have no test system at hand to mess up atm)
VirtualBox Perfect for just this type of testing. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28.02.2015 Ken Schneider - openSUSE wrote:
VirtualBox Perfect for just this type of testing.
I prefer KVM for all my VMs now, have been using VirtualBox excessively in the last couple of years. But setting up a VM to mess with hostnames was a lot of work, and: I would not be able to test all cases, where a hostname with/without domain attached might cause problems. Hence the question. Regards, Johannes - -- Ask a stupid question, and be a fool for 5 minutes. Don't ask, and be a fool for the rest of your life. -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlTxybwACgkQzi3gQ/xETbKRvQCfVaRmlCT0Hw3k7m/dahTjegpP ahcAnjj+DycsE8oHh5IliS7pZrQ8QIXk =LpaS -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Saturday 2015-02-28 14:25, Johannes Kastl wrote:
I found a mail from lennart, who said /etc/hostname should not contain the FQDN. [1] The systemd manuals apparently state there should not be dots in the argument to hostnamectl [2].
How do the various things on openSUSE expect the output of 'hostname' to be? FQDN or not? [1] > http://lists.freedesktop.org/archives/systemd-devel/2013-February/008899.htm...
(open)SUSE itself has used different approaches over time, i.e. sometimes with FQDN, sometimes without. Since the abandonment of /etc/domainname and leaving the "kernel.domainname" sysctl empty some decade ago, the distro generally chose to put the FQDN in /etc/hostname, and the initial installation with yast would write linux-4qfn.site into /etc/hostname, too. Under the right circumstances, certain internet-facing daemons can emit a domainname-less hostname into transmissions, which may not be desired in all cases. (I am thinking of smtp here where half-assed and unresolvable EHLO statements could in theory raise spam scores.) So using FQDN whereever possible and now relying on DNS tacking it on somewhere, is a good approach for now. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28.02.2015 Jan Engelhardt wrote:
(open)SUSE itself has used different approaches over time, i.e. sometimes with FQDN, sometimes without.
I know, that was one of my reasons for asking, to get an up-to-date state.
Since the abandonment of /etc/domainname and leaving the "kernel.domainname" sysctl empty some decade ago, the distro generally chose to put the FQDN in /etc/hostname, and the initial installation with yast would write linux-4qfn.site into /etc/hostname, too.
OK. Good to know.
Under the right circumstances, certain internet-facing daemons can emit a domainname-less hostname into transmissions, which may not be desired in all cases. (I am thinking of smtp here where half-assed and unresolvable EHLO statements could in theory raise spam scores.) So using FQDN whereever possible and now relying on DNS tacking it on somewhere, is a good approach for now.
Jan, thanks for the answer. Is this somehow documented somewhere (apart from the mailing list archives, where it is now...)? To be honest, I found it pretty sad that there is so little documentation for system on openSUSE. Somehow Archlinux has a wiki full of stuff about it, and I assume their userbase is a little smaller. But again, 'wiki' is a boomerang, someone will say 'go fix it yourself, it's a wiki'. Yeah I could, if only I had time... ;-( Regards, Johannes - -- The presence of those seeking the truth is infinitely to be preferred to the presence of those who think they 've found it. (Terry Pratchett, Monstrous regiment) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlTx1j4ACgkQzi3gQ/xETbKMmQCfXtgEx/CgGoNhvxHILDpP0J5F yBEAni4sy6pUILBcz1TRRLYW02gtIJyf =Inu4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Saturday 2015-02-28 15:52, Johannes Kastl wrote:
Under the right circumstances, certain internet-facing daemons can emit a domainname-less hostname into transmissions, which may not be desired in all cases. (I am thinking of smtp here where half-assed and unresolvable EHLO statements could in theory raise spam scores.) So using FQDN whereever possible and now relying on DNS tacking it on somewhere, is a good approach for now.
Jan, thanks for the answer. Is this somehow documented somewhere (apart from the mailing list archives, where it is now...)?
whoops...: ".. and not relying on DNS tacking on the domainname".
But again, 'wiki' is a boomerang, someone will say 'go fix it yourself, it's a wiki'. Yeah I could, if only I had time... ;-(
Well you found the time to ask, and I found the time to reply, so surely there's some more left. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Jan Engelhardt
-
Johannes Kastl
-
Ken Schneider - openSUSE