Australian Sales & Support 1800 519 724

How to Point a Domain at Your Linux VPS

A domain reaches a Linux VPS through an A record that points at the server’s IP address. That is different from shared cPanel hosting, where you change the domain to HSJ Host nameservers and the site is served from cPanel. On a VPS you are running the web server yourself, so DNS has to land on that machine.

Find the VPS IP address

Log in to the client portal and open the Linux VPS. The IP is on the instance details. The same address is in the email sent when the server was provisioned. You will use it as the target of the A record.

The city, Sydney or Melbourne, was chosen when you ordered. It does not change how DNS is written. Plans and locations are on Linux VPS hosting.

Add the A record

Where you edit DNS depends on who holds the domain.

  • Domain registered at HSJ Host, and you want HSJ to keep DNS: open the domain in the client portal and add the records there.
  • DNS hosted somewhere else: add the records at that provider. Leave the nameservers where they are.

Create these records, using your real IP in place of the example.

  • @ or the root domain, type A, value the VPS IP.
  • www, type A, value the same IP. Or a CNAME from www to the root, if you prefer.

Do not change the domain to the shared hosting nameservers unless the site should move onto cPanel. Those nameservers are listed in What Are HSJ Host’s Nameservers for cPanel Hosting? and they will not open a site that only exists on the VPS.

Wait, then test

DNS changes are often visible within a few hours and can take up to 48 hours. Check from your own computer:

dig +short yourdomain.com.au
dig +short www.yourdomain.com.au

Both should print the VPS IP. If they do, and the browser still shows a default page or a connection error, the VPS is receiving the visitor and the web server on the machine is the next place to look. SSH in with How to Connect to SSH on Your Linux VPS and confirm Nginx, Apache, or whatever you installed is listening.

Mail on the same domain

An A record for the website does not set up email. If mail stays on cPanel or on Microsoft 365, leave the MX records where they are and only point the website names at the VPS. If the VPS itself will send mail, set reverse DNS for that IP as well. The steps are in How to Set Reverse DNS on Your VPS.

A single brochure site that does not need root access is usually simpler on shared cPanel hosting, where the nameserver change does the whole job. Use the VPS A record when the application is actually running on that server.

How to Set Reverse DNS on Your VPS

Reverse DNS is the hostname that an IP address answers with. Forward DNS says mail.yourdomain.com.au points at an IP. Reverse DNS says that IP points back at mail.yourdomain.com.au. Mail servers check this pair. If they do not match, messages from the VPS are more likely to be rejected or filed as spam.

You set it on the VPS service in the client portal. It is not the same screen as the nameservers for shared cPanel hosting.

Create the forward record first

Pick a hostname you control, such as vps.yourdomain.com.au or mail.yourdomain.com.au. At the DNS host for that domain, add an A record for that name and point it at the VPS IP address. Find the IP on the instance details in the client portal, or in the email sent when the server was provisioned.

Wait until that name resolves to the VPS IP. Reverse DNS that names a host which does not point back at the same address will still fail mail checks.

Set reverse DNS in the portal

  1. Log in to the client portal and open the Linux VPS.
  2. Under Service Management, open Reverse DNS.
  3. Find the IPv4 address in the list. The table shows the protocol, the IP, and the current reverse DNS value.
  4. Click Update.
  5. In Update DNS Record, enter the hostname. Use the name only, without https:// and without a path.
  6. Save. The portal confirms when the reverse DNS record has been updated.

IPv6 is a separate row. Use Create IPv6 Reverse DNS if you send mail over IPv6 and need a matching hostname there. You can remove an IPv6 record with Delete. Deleting the IPv4 record is not the usual fix. Update it to the right hostname instead.

Check that the pair matches

From your own computer, look up the hostname and the IP.

dig +short vps.yourdomain.com.au
dig +short -x your.vps.ip.address

The first command should print the VPS IP. The second should print the hostname you saved, with a trailing dot. If the second is empty, give the change some time and check that you updated the IP that mail actually leaves from.

Reverse DNS does not point a website at the server. The website still needs an A record, which is covered in How to Point a Domain at Your Linux VPS. Shared hosting nameservers stay on the cPanel nameserver guide. Those nameservers send the domain to shared hosting, not to this VPS.

How to Reboot or Reinstall Your Linux VPS

A reboot restarts the Linux VPS and leaves your files in place. A reinstall wipes the disk and builds a fresh operating system. Both are done from the HSJ Host client portal, on the service page for that VPS. You do not need to open a ticket for a normal restart.

These plans are unmanaged. Restarting or reinstalling the machine does not install Nginx, Docker, or a panel for you. After a reinstall you connect again over SSH and set the server up yourself. The login steps are in How to Connect to SSH on Your Linux VPS.

Reboot the VPS

  1. Log in to the client portal.
  2. Open the Linux VPS product.
  3. Under Service Actions, click Reboot.
  4. Confirm the reboot. The portal asks if you are sure before it restarts the instance.

Give it a minute, then try SSH again. A reboot is the right first step when the server is up in the portal but SSH is hanging, or after a kernel update that asks for a restart. It does not change the IP address, and it does not remove your sites.

Start and Stop sit next to Reboot. Stop powers the instance off. Start brings it back. Use those when you want the machine off, not when you only want a restart.

Use the console if SSH will not connect

Under Service Management, open Console. That is a browser session on the machine, useful when SSH is refused or you have locked yourself out with a firewall rule. Log in as root with the password from the instance details, or from the email sent when the VPS was first provisioned.

Reinstall the operating system

Reinstalling deletes the data on the VPS. Take a copy of anything you need before you confirm it. There is no undo after the new system is written.

  1. On the same service page, under Service Actions, click Reinstall.
  2. Read the confirmation. It asks if you want to reinstall this instance.
  3. Confirm only if you have a backup of the sites and databases on that disk.

To pick a different distribution, open Reinstallation under Service Management. The images available at order are Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Debian 11, Debian 12, AlmaLinux 8, AlmaLinux 9, Rocky Linux 8 and Rocky Linux 9. The full plan list is on Linux VPS hosting.

When the reinstall finishes, open the instance details in the portal and use the new password. The old root password will not work. The IP address normally stays the same, so DNS that already points at this VPS does not need a change. SSH in and build the stack again.

Which one to use

  • The site is slow or SSH timed out once: reboot.
  • You cannot SSH in after a firewall change: console, then fix the rule.
  • The disk is broken, or you want a clean operating system: reinstall, after a backup.

How to Connect to SSH on Your Linux VPS

SSH is how you’ll manage a Linux VPS day to day, whether that’s installing software, configuring your server, or just checking what’s running. Here’s how to find your connection details and get logged in from a Linux or Mac machine.

What is SSH?

SSH (Secure Shell) is a protocol that lets you connect to a remote server and control it directly from a terminal. On a VPS, it’s your main way in, there’s no separate control panel sitting between you and the server unless you choose to install one yourself. Once connected, you have full command line access to manage the server as needed.

If you’re used to shared hosting and cPanel, a VPS is a different way of working. You’re not restricted to a set of preconfigured tools, but that also means more responsibility for setting things up and keeping them secure.

Finding your VPS connection details

When your VPS is provisioned, HSJ Host sends your login details by email. You’ll need three things to connect

  • Your server’s IP address
  • Your username (usually root on a freshly provisioned VPS)
  • Your password, or an SSH key if one was set up during provisioning

If you can’t locate this email, you can also find your server’s IP address by logging in to the client portal and checking your VPS service details.

Connecting to SSH from a Linux or Mac terminal

Both Linux and macOS come with a terminal and SSH client built in, so there’s nothing to install first.

Step 1, open your terminal

On Linux, open your terminal application. On a Mac, open Terminal from Applications, then Utilities.

Step 2, run the SSH command

Type the following, replacing the placeholders with your actual username and server IP address.

ssh [email protected]

Step 3, accept the host key

The first time you connect to a new server, you’ll see a message asking whether you trust the host, something like “The authenticity of host cannot be established.” Type yes and press enter. You won’t be asked this again for the same server.

Step 4, enter your password

You’ll be prompted for your password. Type it in and press enter, nothing will appear on screen as you type, that’s normal for terminal password fields.

Once you’re in, you’ll see your VPS’s command prompt, and you’re ready to start managing your server.

Securing your VPS after your first login

A freshly provisioned VPS is functional but not locked down for ongoing use. Worth doing early on

  • Change the root password if you haven’t already, using the passwd command
  • Create a non-root user for day to day tasks, rather than staying logged in as root permanently
  • Set up SSH keys (covered below) and consider disabling password login once they’re working
  • Update your server with your distribution’s package manager, for example apt update && apt upgrade on Ubuntu or Debian

None of this is required to get started, but it’s worth doing before the server goes anywhere near production use.

Connecting with SSH keys instead of a password

SSH keys are a more secure way to connect than a password, and they’re the standard approach for anyone managing a VPS long term.

Step 1, generate a key pair

From your terminal, run

ssh-keygen -t ed25519

You’ll be asked where to save the key (the default location is fine for most people) and whether to set a passphrase, which is optional but adds an extra layer of protection.

Step 2, copy your public key to the server

The simplest way is with

ssh-copy-id [email protected]

This copies your public key across and adds it to the server automatically. You’ll be asked for your password one last time to authorise it.

Step 3, connect using your key

From now on, the same connection command will use your key automatically rather than asking for a password.

ssh [email protected]

Troubleshooting

I get “connection refused” when trying to connect

Double check the IP address is correct and that the VPS is actually running. If you’ve recently changed the SSH port from the default, make sure you’re including it in your command with -p.

I get “permission denied” after entering my password

Confirm you’re using the correct username and password from your provisioning email. If you’ve changed the root password since setup, make sure you’re using the current one.

My SSH key isn’t working

Check that ssh-copy-id completed without errors, and that you’re connecting with the same key pair you generated. If you set a passphrase, you’ll be asked for that each time unless you’re using an SSH agent.

The connection just hangs and doesn’t respond

This often points to a firewall or network issue rather than the server itself, some networks block outbound SSH connections. Try a different network if possible, or check with support to confirm nothing’s blocking the connection on our end.

Need a hand?

If you’re not sure where to find your VPS login details, or you’re running into issues getting connected, the HSJ Host support team is available 24/7 through the client portal or by calling 1800 519 724.