[Bug 433179] New: NetworkManager (or dhclient) always sets full hostname instead of short one.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179 Summary: NetworkManager (or dhclient) always sets full hostname instead of short one. Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: tambet@novell.com ReportedBy: seife@novell.com QAContact: qa@suse.de CC: mt@novell.com Found By: Development Note that I have configured my system to not change the hostname via dhcp. Hostname is stoetzler.suse.de. After boot without network or with netcontrol I get: seife@stoetzler:~> hostname stoetzler seife@stoetzler:~> echo $HOSTNAME stoetzler If now NM puts the interface up, i get the following: seife@stoetzler:~> hostname stoetzler.suse.de And, depending on when I log in and thus when the HOSTNAME variable is set in the shell, I also get HOSTNAME=stoetzler.suse.de This confuses applications that store the configuration depending on the hostname and it can also prevent X applications from starting (because the hostname changed). I now use the following to fix the issue up: seife@stoetzler:~> cat /etc/NetworkManager/dispatcher.d/aa_fix_hostname #!/bin/sh read hostname < /proc/sys/kernel/hostname hostname ${hostname%%.*} However, when the lease is renewed, the hostname is overwritten again. I'm not sure if this is NM's or dhcp-client's fault. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433179#c1
Tambet Ingo
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433179#c2
Stefan Seyfried
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433179#c3
Tambet Ingo
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179
JP Rosevear
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=433179
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433179#c4
Tambet Ingo
participants (1)
-
bugzilla_noreply@novell.com