What steps will reproduce the problem? 1. In console, type "hostname". 2. then type "hostname -s". 3. then type "hostname -f".
What is the expected output? All outputs should be the same - "puppyXXXX" - on a clean Puppy system.
What do you see instead? hostname returns "puppyXXX", however, hostname -s and hostname -f both return "localhost".
What version of the product are you using? On what operating system? Puppy Precise 5.5.
Please provide any additional information below. Issue is caused because the HOSTNAME is added after "localhost" when /etc/hosts is updated by usr/sbin/hostname-set.
Specifically, line 75 of usr/sbin/hostname-set has the following: echo "127.0.0.1 localhost $NEW_HOSTNAME" > /tmp/hostname-set-hosts which should be changed to: echo "127.0.0.1 $NEW_HOSTNAME localhost" > /tmp/hostname-set-hosts
For background, see: 1. http://www.murga-linux.com/puppy/viewtopic.php?p=695434 2. http://linux.die.net/man/5/hosts
Status: New
Labels:
Type-Defect
Priority-Medium