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

preseed installation, hostname and PTR

Good day.

Found very strange behavior: If VM installed with preseed and new VM hostname is passed via kernel command line, installer ignores that option and use data from DNS (PTR record for IP).

This is bug or feature? I found it in sqeeze/wheezy and ubuntu (12.04) installers.

Example of command line:

DEBCONF_DEBUG=5 auto suite=wheezy url= keyboard-configuration/xkb-keymap=us country=RU language=en locale=en_US keyboard-configuration/ask_detect=false keyboard-configuration/layoutcode=us keyboard-configuration/variant=USA keyboard-configuration/layout=USA hostname=good domain=\"\" netcfg/choose_interface=eth0 netcfg/disable_dhcp=true netcfg/dhcp_failed=note netcfg/get_ipaddress= netcfg/get_netmask= netcfg/get_gateway= netcfg/get_nameservers= netcfg/confirm_static=true mirror/http/hostname=mirror.local mirror/http/directory=/debian clock-setup/ntp-server=

And if local DNS server says, for example, that IN PTR bad.local, than
hostname for installed machine is 'bad'.

Kinda strange...

Reply to: