You are not logged in.
Hello I have a new Arch linux and am within setting it up. After reboot, my transient hostname
(I actually am not sure what that is) always gets set to dhccp1.
Here are some files:
$head /etc/host*
==> /etc/host.conf <==
#
# /etc/host.conf
#
order hosts,bind
multi on
# End of file
==> /etc/hostname <==
smalla-think
==> /etc/hosts <==
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost smalla-think
::1 localhost.localdomain localhost smalla-think
# End of file
$ hostnamectl
Static hostname: smalla-think
Transient hostname: dhcppc1
…
I have seen that /etc/nsswitch.conf has a myhosts entry under hosts. What is that doing? Where can I read up about it. The manpage doesn't mention it.
Last edited by Рат (2015-08-15 21:05:42)
Offline
Try
sudo hostnamectl set-hostname --transient <foo>
Offline
Thanks, I have tried
hostnamectl set-hostname
both with the explicit --transient option and without (to set all three hostnames, as the man page states).
The hostname doesn't get persisted through restarts. After I have restarted the transient hostname is dhcppc1 again.
Offline
Have a look at the thread from last year, although it may be a different issue: https://bbs.archlinux.org/viewtopic.php … 2#p1417202
Offline
Found it on the connmand wiki page. Has a own section there:
https://wiki.archlinux.org/index.php/Co … e_hostname
Sorry that I haven't seen it before.
Offline