Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/feed-rss2.php on line 8
How To Change Your Hostname on Debian – AKLWEB HOST LLC Support Center https://support.aklwebhost.com Fri, 06 Dec 2019 23:48:43 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 How To Change Your Hostname on Debian https://support.aklwebhost.com/knowledgebase/how-to-change-your-hostname-on-debian/ https://support.aklwebhost.com/knowledgebase/how-to-change-your-hostname-on-debian/#respond Fri, 06 Dec 2019 23:47:19 +0000 https://support.aklwebhost.com/?post_type=manual_kb&p=2653 Step 1: Login to your VPS

Locate the IP address of your AKLWEB HOST VPS and login as the root user.

ssh root@server

Step 2: Edit /etc/hostname

Open the /etc/hostname file with your favorite text editor. For example:

nano /etc/hostname

Update the hostname in this file. Then save the file, and exit the text editor.

Step 3: Edit /etc/hosts

Open the /etc/hosts file with your favorite text editor. For example:

nano /etc/hosts

Change the first line and replace your old hostname with the new one. Save the file and exit the editor.

Step 4: Run hostname.sh

Run the following command to update your hostname:

/etc/init.d/hostname.sh start

Step 5: Check your hostname

Run the following command to check your new hostname:

hostname

The new hostname will be displayed in your ssh terminal.

Step 6: (Optional) Change reverse DNS

Visit Client Area, then navigate to your VPS. Click on the IPv4 tab. You will see an “Update” button in the “Reverse DNS” column. Click this button to update the reverse DNS address. By default it will read:

x.x.x.x.aklwebhost.com

It is common to replace x.x.x.x.aklwebhost.com with the DNS name of your server, which may be related to its hostname.

]]>
https://support.aklwebhost.com/knowledgebase/how-to-change-your-hostname-on-debian/feed/ 0