How do I configure my DNS for hostname changes in cPanel?

Hostname DNS configurations in cPanel

For this example, is kbtuts.arnhost.com and I'll be changing to tuts.khtechs.com. This example is also considering that the domain 'khtechs.com' is already hosted on the VPS. For more about how to choose a hostname, you can read more here.

  1. Open your WHM Panel in your favorite browser. ( https://serveripaddress:2087 or http://serveripaddress:2086 )
  2. Navigate to the Edit DNS Zone panel.
  3. Select the zone for the domain name that the new hostname will be on. Remember for this example, we're using 'khtechs.com'. Then press the [ Edit ] button.
  1. Once in the DNS Zone Editor, for the correct domain name, scroll down past the already defined records. You'll see empty record fields below, Add New Entries Below this Line.
  2. n the first empty field, input the subdomain text of your new hostname. (eg. for tuts.khtechs.com 'tuts' will be the record we enter)
  3. Leave the default numerical TTL value (you can change if you wish), select [ A ] for the Record Type value, and input your server's IP address in the IP or Hostname field.
  4. No other configurations need to be changed or altered here, simply scroll down and press the [ Save ] button.

Checking the hostname change

Ensure that you have properly submitted the Support ticket as previously referenced and followed the above procedures. After doing so, let's check to make sure everything is working properly.

  1. In WHM, navigate to Home »Networking Setup »Change Hostname
  2. Look for the "Current Hostname" box at the top of the panel. This should present your accurate hostname, however, if it does not, please ensure that your Support Department ticket request has been completed properly, then continue to the bottom of the page looking for "Change Hostname", at which point you will input the newly desired hostname and select [ Change ].
  3. Test by opening WHM via the hostname.
    1. Open a new browser window and use the following URL template/example to open your WHM Panel. ( https://newhostname.example.com:2087 for this example: https://tuts.khtechs.com/whm )
      • If everything is working properly, your WHM Panel should open with the provided link.
  4. Testing with the hostname command via SSH terminal.
    1. Open an SSH terminal as root on your server.
    2. Type hostname
      • Last login: Tue Oct 21 12:18:34 2014 from 127.0.0.1
        root@tuts [~]# hostname
        tuts.khtechs.com
    3. You'll see the output of your current hostname returned.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I'm unsure what to put as IP for the resolver configuration in WHM

Please leave default IPs in resolver configuration to give your VPS the best DNS performance...

Is there a way to limit bandwidth for a sub domain or cPanel account for one of our domains?

CPanel allows you to set the bandwidth limit for each account, once you reach the bandwidth...

Powered by WHMCompleteSolution