On Friday 18 Jul 2014 03:16:39 David C. Rankin wrote:
Brain-trust,
Here is a curiosity in 13.1. After install, the hostname command returned the fully qualified domain name instead of properly returning the hostname alone. Eg:
$ hostname alchemy.3111skyline.com
$ hostname -f alchemy.3111skyline.com
This caused problems in some application that are expecting only the hostname part. Picking through the usual list of suspects, it turned out that /etc/HOSTNAME was the guilty party. It contained:
# cat HOSTNAME alchemy.3111skyline.com
That was odd, in the past, /etc/HOSTNAME generally included only the hostname part and not the dnsdomainname as well. Fixing /etc/HOSTNAME fixed the problem.
Has anyone else noticed this? If this can be confirmed, I'll file the bug report, but there is also the possibility I entered the full hostname during install when it called for only the hostname part. I guess in that instance I should still file a bug report because the installer should be smart enough to validate the input. What says the list?
Hi David, I just had a look at an opensuse 13.1 VM I have installed in a test rig (this one runs kolab which requires correct response from the hostname commands) and I do not see what you are seeing. Here is the output from this VM andrew@kolab:~> cat /etc/HOSTNAME kolab.test.rig andrew@kolab:~> hostname kolab andrew@kolab:~> hostname -s kolab andrew@kolab:~> hostname -f kolab.test.rig andrew@kolab:~> cat /etc/hosts # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 192.168.200.210 kolab.test.rig kolab 192.168.200.210 kolab.test.rig kolab Do you have the hosts entry? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org