[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#567468: domainname



Hi,

IMHO you are confused: /proc/sys/kernel/domainname is the NIS domain name
and has nothing to do with DNS; in fact, the NIS domain can be different
from the DNS domain. Thus your script is doubly wrong: on a NIS system
hostnames are normally not qualified so you cannot obtain the NIS domain
from the host name, and on a non-NIS system the NIS domainname should
remain unset even if the hostname is qualified.

Also, mdadm currently works fine with custom-built kernels having no
initramfs at all. Why break that? It would be much nicer to patch mdadm
to try to read /etc/hostname directly if gethostname() returns an empty
string.

Regarding to the issue Marco raised: in fact it is quite common to
install a machine on an internal network where it gets some random name
from DHCP, and rename it when it is ready to be put at it's intended
location. When you do not have physical access to the final location
then finding out that the machine no longer boots with the new name may
be painful.

Gabor



Reply to: