You can change your VPS hostname directly through your control panel in just a few clicks. The hostname is the unique identifier for your server, and updating it is important when setting up a new VPS or reorganizing your server infrastructure. Simply log into your VPS control panel, navigate to the hostname settings, and enter your new hostname.
A properly configured hostname is essential for email delivery, SSL certificates, and overall server management. Here's how to update it correctly.
Accessing Your VPS Control Panel
First, log into your VPS control panel using the credentials provided in your welcome email from OBHost. If you've misplaced these details, you can retrieve them from your client area or contact our support team.
Once logged in, you'll see your server dashboard with various management options. Look for the settings or configuration section where hostname management is located.
Steps to Change Your Hostname
- Navigate to Settings: From your VPS control panel dashboard, click on the Settings or Configuration option in the main menu.
- Find Hostname Section: Scroll down to locate the Hostname field. This is typically found under basic server settings or server information.
- Enter New Hostname: Click on the hostname field and enter your new hostname. Use a fully qualified domain name (FQDN) format, such as server1.yourdomain.com.
- Save Changes: Click the Save or Update button to apply your new hostname.
- Reboot if Required: Some systems may require a reboot for the hostname change to take full effect. If prompted, restart your VPS through the control panel.
Best Practices for Hostname Configuration
When choosing a new hostname, follow these guidelines to avoid issues:
- Use a fully qualified domain name that you own and control
- Ensure the hostname has a valid DNS record pointing to your VPS IP address
- Avoid using special characters or spaces in your hostname
- Use lowercase letters to prevent compatibility issues
- Make the hostname descriptive and meaningful for easier server identification
Verifying Your Hostname Change
After changing your hostname, verify it has been applied correctly. You can do this by connecting to your VPS via SSH and running the command hostname or hostname -f to see the full hostname. The output should match what you entered in the control panel.
Additionally, check that your DNS records are properly configured to point to your VPS. This ensures email servers and SSL certificates can properly validate your hostname.
Common Hostname Issues and Solutions
Why doesn't my hostname change appear after saving?
Some configurations require a server reboot to fully apply hostname changes. Return to your control panel and perform a restart. If the issue persists after rebooting, clear your browser cache and log back in to verify the change. The new hostname should also be reflected when you connect via SSH.
Can I use an IP address as my hostname?
While technically possible, using an IP address as your hostname is not recommended. Many services, especially email servers and SSL certificate authorities, expect a proper domain name. For best results, always use a fully qualified domain name that you control.
Will changing my hostname affect my websites?
Changing your VPS hostname typically won't affect your hosted websites, as they rely on their own domain configurations. However, if you use the hostname for email services or SSL certificates, you'll need to update those configurations accordingly. Always create a backup before making system changes.
How do I update DNS records after changing my hostname?
Log into your domain registrar or DNS management panel and create an A record pointing your new hostname to your VPS IP address. For example, if your hostname is server1.yourdomain.com, create an A record for server1 pointing to your server's IP. DNS changes can take up to 48 hours to propagate fully.
If you need assistance changing your VPS hostname or have questions about server configuration, our support team at OBHost is available 24/7 to help. Visit our contact page or email support@obhost.org for expert guidance.