Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920281

Summary: net-misc/networkmanager-1.42.6-r2: interferes with configured hostname
Product: Gentoo Linux Reporter: Gentookh <ghz3>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED UPSTREAM    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://unix.stackexchange.com/a/513413
Whiteboard:
Package list:
Runtime testing required: ---

Description Gentookh 2023-12-18 18:12:17 UTC
I configured my hostname according to Gentoo Handbool (in /etc/hostname), but it was keep changing nevertheless to IP address instead.

Reproducible: Always

Steps to Reproduce:
1. Set hostname in /etc/hostname
2. Wait for Wi-Fi network connection
3. Check output for `hostname`
Actual Results:  
`hostname` != `cat /etc/hostname`

Expected Results:  
`hostname` == `cat /etc/hostname`

Fixed using following configuration:

```
$ cat /etc/NetworkManager/NetworkManager.conf
[main]
hostname-mode=none
```
Comment 1 Mike Gilbert gentoo-dev 2023-12-28 01:49:34 UTC
I think that's just how NetworkManager works by default. You should complain upstream if you don't like it.