Child pages
  • Change Hostname
For cPanel & WHM version 70

Skip to end of metadata
Go to start of metadata

(WHM >> Home  >> Networking Setup >> Change Hostname)

Overview

The Internet uses your hostname as a label by which to identify your physical server. This interface allows you to change your server's hostname.

Important:

  • Do not select a hostname that begins with www or a number, or a hostname that ends with a hyphen (-).
  • You must use a fully-qualified domain name (FQDN) that uniquely identifies the server (for example, hostname.example.com or hostname.example.co.uk).
  • Do not choose a hostname that a cPanel account on your server will use.
  • Do not choose a potential proxy subdomain as a hostname (for example, cpanel.example.com or whm.example.com).
  • Do not select a socially-unacceptable hostname. The hostname will appear in mail headers.
  • Only use lowercase, Latin-script letters in hostnames.
The system displays your current hostname under the Current Hostname heading.

How to change your hostname


Important:

If you update your hostname, the system blocks user access to the following interfaces and services:

  • Horde Webmail
  • Calendars and Contacts (CalDAV and CardDAV)

The system restores access to these interfaces and services after the hostname update finishes. For more information, read our Interface Lock Scripts documentation.


Notes:

To change your hostname, perform the following steps:

  1. Enter the new hostname into the New Hostname text box.

    Remember:

    You must use a fully-qualified domain name as your new hostname. Your new hostname should also resolve to the server's main IP address.
  2. Click Change. A popup window will appear that confirms the hostname change is in progress.
  3. After the system changes your hostname, scroll to the bottom of the interface and click Add An A Entry for your hostnameWHM's Add an A Entry for Your Hostname interface (WHM >> Home >> DNS Functions >> Add an A Entry for Your Hostname).
  4. Review the information about your server and, if it is correct, click Add Entry.

The system will automatically configure the new hostname and add the correct A entry.

Notes:

  • When you change your hostname, the system preserves the old hostname until you reboot the server so that currently-running services can function in a consistent environment.
  • If you must change your hostname for non-cPanel configuration files or services, these services continue to function until you manually adjust them.
  • If you use External Authentication, you must update the Redirection URI settings in the configuration settings at the external authentication provider's site to reflect the new hostname.

Additional documentation

There is no content with the specified labels

There is no content with the specified labels