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.