Mailinglist Archive: opensuse-bugs (4065 mails)

< Previous Next >
[Bug 667265] LiveCD installs fail to set hostname

https://bugzilla.novell.com/show_bug.cgi?id=667265

https://bugzilla.novell.com/show_bug.cgi?id=667265#c9


Marius Tomaschewski <mt@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|bwiedemann@xxxxxxxxxx |
AssignedTo|varkoly@xxxxxxxxxx |bili@xxxxxxxxxx

--- Comment #9 from Marius Tomaschewski <mt@xxxxxxxxxx> 2011-01-31 12:52:34 UTC
---
OK, I've installed the LiveCD and see what the problem is:

!NetworkManager! breaks the host resolution completely:

linux:~ # cat /etc/HOSTNAME
linux-hq0d.site
linux:~ # dhcpcd-test eth0 | grep HOSTNAME
linux:~ # dhcpcd-test eth0 | grep IPADDR
IPADDR='172.16.4.60'
linux:~ # grep linux /etc/hosts
172.16.4.60 linux.site linux # Added by NetworkManager
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::1 linux.site linux localhost6.localdomain6 localhost6
^^^^^^^^^^^^^^^^^^^^^
127.0.0.2 linux-hq0d.site linux-hq0d

When dhcpcd tries to resolve the IP to name (because the poorly configured
dhcp-server does not provide it in its response), it makes use of the normal
system configuration, that is /etc/nsswitch.conf order of "files dns" and
of course it gets the hostname from /etc/hosts and not the one from DNS.

NetworkManager: please fix and don't do such a crap any more.

--
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.

< Previous Next >
References