I face annoying problem with localhost, Gentoo system 13.0 desktop/plasma profile with OpenRC set hostname to genT430since the setting to the box not finished yet, connection to home router via wpa_supplicant on wifi (No wired connection). After "considering everything set-up. Network manager activated, and nightmare coming. All application via plasma menu, Can Not Run at all, log back in into terminal and found hostname changed to dhcppc2 guessing ... it's coming from dhcp ( ver 4.3.3 ) upgrade dhcp to 4.3.4 but the problem persist. Sure everything run normally by changing hostname in /etc/conf.d/hostname with dhcppc2, editing /etc/hosts and stuff to follow mysterius hostname.Browsing on the Net ... many users in various distro (fedora, archLinux, ubuntu) faced same problem. But NO COMPREHENSIVE solutions, using keywords to obtain higher version of NetworkManager, gentoo did not provide it ... I did not want to hunt in overlay space. Current solution is surrender to given hostname dhcppc2. I was bit lucky since the mysterious hostname constant to dhcppc2 which many users faced worse with uncertain hostname among dhcppc0 - dhcppc9
..... continue investigating and will update one upon a time .... LOL Solution
I used dhclient and caused got dhcppc2 hostname re-merge network manager, change USE flag from dhclient to dhcpcd; edit /etc/dhcpcd.conf >
option domain_name_servers, domain_name, domain_search, host_name
change to COMMENTED
#option domain_name_servers, domain_name, domain_search, host_name
hostname [empty]
changed to
hostname YourHostname