https://bugzilla.novell.com/show_bug.cgi?id=667265 https://bugzilla.novell.com/show_bug.cgi?id=667265#c17 --- Comment #17 from Marius Tomaschewski <mt@novell.com> 2011-02-15 09:50:12 UTC --- (In reply to comment #15) [...]
147.2.207.126 Azi # Added by NetworkManager 127.0.0.1 localhost.localdomain localhost linux-fnxj ::1 Azi localhost6.localdomain6 localhost6 linux-fnxj Azi.bj.novell.com linux.site linux [...] It works fine for me, the hostname is 'Azi', and my original hostname is 'linux-fnxj'.
When you add the hostnames to /etc/hosts [even worser when you override all the localhost entries and add the broken *.localdomain, *.site], the resolver does not use dns any more but returns the answers from /etc/hosts only. It "works", as long as it is "in sync" with dns. But when the hostname changes in dns, e.g. because the dhcp client requested it to change, the additions break the resolving process, because the resolver still returns the obsolete data from /etc/hosts instead from dns. OK, as long as NM is running, you can still update /etc/hosts to bring it in sync. But you have to revert all the /etc/hosts changes at exit of NM, because it breaks everything else later -- ifup in this case.
And in Comment 9, if the NM don't change the hostname in hosts, so who will in charge of it? Or which one don't need changed by NM?
You can change the hostname at runtime using e.g. "hostname $newone" [after verifying that at least the PTR record contains it], but don't define it in /etc/hosts. DNS server will provide the correct name for your host / reverse of IP. -- 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.