Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920281 - net-misc/networkmanager-1.42.6-r2: interferes with configured hostname
Summary: net-misc/networkmanager-1.42.6-r2: interferes with configured hostname
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://unix.stackexchange.com/a/513413
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-18 18:12 UTC by Gentookh
Modified: 2023-12-28 01:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.