> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hostcloud.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Set reverse DNS (PTR) for your VPS

> Make your VPS IP address point back to a hostname, which helps email from your server get delivered.

Reverse DNS turns your server's IP address back into a name, such as `mail.yourdomain.com`. This guide shows you how to set it for your HostCloud VPS.

## Why it matters

Normal DNS answers "what IP address is `yourdomain.com`?". Reverse DNS answers the opposite: "what name belongs to this IP address?". That answer is stored in a **PTR record**.

Many email providers check it. If your VPS sends email and its IP address has no matching reverse DNS, your messages are more likely to land in spam or be rejected.

> [!NOTE]
>
> You only need this if your VPS sends email, or if software you run asks for it.

## Before you start

Set up the normal DNS record first. The name you choose, for example `mail.yourdomain.com`, must have an `A` record pointing to your VPS's IP address. Many mail servers only trust reverse DNS when both directions match. See [Add DNS records](https://kb.hostcloud.in/dns/add-dns-records.md).

## Set the PTR record

**1. Open your VPS**

In the Client Area, click **Services** in the top menu, then open your VPS.

**2. Open the Network tab**

Click the **Network** tab. It lists your server's IP addresses with their version (v4 or v6), type and **Reverse DNS (PTR)**.

**3. Edit the reverse DNS**

On the IP address's row, click the pencil icon next to the current reverse DNS name.

**4. Enter the hostname and save**

Type the full hostname, for example `mail.yourdomain.com`, and save it.

![The Network tab of the VPS panel, listing IP addresses with Version, Type and Reverse DNS (PTR) columns and a pencil icon to edit](https://mintcdn.com/host-cloud/RZlILv_TrgPxefdL/images/vps/network-tab.jpg?fit=max\&auto=format\&n=RZlILv_TrgPxefdL\&q=85\&s=eb8353d346b639b0bbb33115957f743a)

The change can take a few minutes to show up.

## Check it worked

On your computer, run one of these, using your VPS's IP address in place of `203.0.113.10`:

| Computer | Command |
| - | - |
| Windows | `nslookup 203.0.113.10` |
| Mac or Linux | `dig -x 203.0.113.10 +short` |

The answer should be the hostname you entered.

> [!TIP]
>
> If your server has more than one IP address, set reverse DNS for each one that sends email.

Still stuck? [Open a ticket](https://kb.hostcloud.in/support/open-a-ticket.md) with your server's IP address and the hostname you want.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.