On 01/24/2019 12:58 PM, Carlos E. R. wrote:
127.0.0.1 dharma.fritz.box dharma
Notice that assigning 127.0.0.1 may break several programs, notably postfix.
I haven't needed to change the default. Simply setting the hostname with the Fully Qualified Domain Name (FQDN) as root: # hostname dharma.fritz.box # echo dharma.fritz.box > /etc/hostname You can verify with $ hostname dharma $ hostname -f dharma.fritz.box You can do (but I haven't needed to change defaults) # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 dharma.fritz.box dharma localhost Where the Short-Hostname are aliases and you can have more than one. (note: suse use to use a 127.0.0.2 in that regard, but I haven't seen that since 11.x or so) Other Topic... You only need a 'dot' at the end of the domain in bind zone file for (DNS) to prevent bind appending another, not with /etc/hosts. -- David C. Rankin, J.D.,P.E.