I've heard that this bug was caused by a workaround added
to NetworkManager to accomodate a bug in glibc when dealing
with IPv6 and localhost name resolution.
Laurent, I've further worked around the problem by setting
the hostname in /etc/Networking/dispatcher.d. Its not pretty
but adding an executable file in this directory containing :
I've heard that this bug was caused by a workaround added
to NetworkManager to accomodate a bug in glibc when dealing
with IPv6 and localhost name resolution.
Laurent, I've further worked around the problem by setting /dispatcher. d. Its not pretty
the hostname in /etc/Networking
but adding an executable file in this directory containing :
#!/bin/sh network | cut -d= -f2 > /proc/sys/ kernel/ hostname network | cut -d= -f2 > /proc/sys/ kernel/ hostname
case "$2" in
up)
grep HOSTNAME /etc/sysconfig/
;;
down)
grep HOSTNAME /etc/sysconfig/
;;
esac
exit 0
works around NetworkManager setting the hostname to localhost. localdomain if it cannot write to /etc/hosts.