Child pages
  • How to rename a computer

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

On the computer's host

LXC

TODO: what is the procedure for renaming an LXC? http://www.bonusbits.com/wiki/HowTo:Rename_LXC_Container

Xen

TODO: what is the procedure for renaming a Dom0 (nothing special?) and a DomU (at least the DomU's config file, log and autostart link on the Dom0 include the DomU's FQDN).

On the computer

All distributions

Cyrus

TBC

...

TODO: develop procedure for renaming the volume group and document here (when / is on LVM as ours normally are, this may require rebuilding the initial RAM disk, re-configuring the boot manager, editing fstab ...).  Maybe useful links: https://we.riseup.net/debian/renaming-a-lvm-root-volume-group, https://bugzilla.redhat.com/show_bug.cgi?id=230190#c17 (RedHat),

...

TODO: what is the procedure for renaming an LXC? http://www.bonusbits.com/wiki/HowTo:Rename_LXC_Container

Name resolution

/etc/hosts  If the name change includes a domain name change and the old domain name appears in /etc/hosts for the computer then it must be changed.

...

In case there is undelivered mail from the old hostname, if not required it can be deleted using  postsuper -d ALL

Xen

TODO: what is the procedure for renaming a Dom0 (nothing special?) and a DomU (at least the DomU's config file, log and autostart link on the Dom0 include the DomU's FQDN).

Debian

Reference: Debian WIKI page on changing hostname.

...