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

Bug#983835: base-installer: hostname= is ignored if reverse-dns exists

Package: base-installer
Severity: normal
Tags: d-i

Dear Maintainer,

When doing a network-install of a system, if one passes `hostname=foo`
on the kernel commandline, the installer will use that to set the
hostname of the installed system...

EXCEPT if there's reverse-DNS for the IP address that we happen to have
gotten from DHCP, in which case that takes precedence. But it shouldn't,
we very explicitly are requesting a hostname to set.

This situation happens in environments with dynamic dns where a client
may have released an IP, the DHCP gave it out to this new client, but
there's still a DNS cache with the old mapping.

The installer should prefer the explicit preference set by the
adminsitrator over the implicit one. Or, at the very least provide a
configuration option to enable such a behavior.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply to: