How to prevent dhcpcd from setting hostname got from server? Change of it breaks a lot of things (including X session).
My current distribution is Gentoo, init system is systemd and dhcpcd is spawn by networkmanager.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
From n.m.'s link - the solution is described on NM webpage under 'Persistent Hostname'. One need to add to
[main] plugins=keyfile [keyfile] hostname=deepspace9
I believe you should add smth like following to your
dhcpcd_eth0="-h yourhostname -H yourhostname"
P.S. You may want to check:
P.P.S. Personally I use
dhcpcd looks buggy for me.