Skip to content
hostup.se

Set up reverse DNS (PTR) for your VPS

Checked against the client area 29 October 2026

Reverse DNS (rDNS, a PTR record) makes your server’s IP address point back to a hostname, for example mail.example.com. You need it if the server sends email, for instance. You set it for each IP address on the server.

Open your servers in the client area

The hostname must already point to the address. For an IPv4 address, the hostname needs an A record with the server’s address. For an IPv6 address, it needs an AAAA record. The client area checks the record before it saves anything.

If the domain is with us, add the record under DNS management. Add, change and delete DNS records shows how.

  1. Go to VPS and click the server. Open the Network tab.

    The server’s page with VPS in the menu and the Network tab framed
  2. Find the address under IPv4 Addresses or IPv6 Addresses. Below it you see its current hostname. If it has none, it says No rDNS set.

  3. Click the pencil (Edit rDNS) next to it. The Set Reverse DNS dialog opens.

    The Network tab with the server’s addresses and the Edit rDNS pencil framed
  4. Type the hostname in the field, for example mail.example.com. If the address already has a hostname, it is in the field. Replace it. The requirement is shown under the field: The hostname must be public and have an A or AAAA record pointing to this IP address before you can set reverse DNS.

    The Set Reverse DNS dialog with the help text about the A and AAAA record framed
  5. Wait while the client area checks the record. When it says Forward DNS verified successfully, the hostname points to the right address.

    The Set Reverse DNS dialog with mail.example.com typed in. Forward DNS verified successfully and the Update button are framed
  6. Click Update. While the field is empty, the button says Reset.

The client area shows Reverse DNS updated successfully. The address now shows rDNS followed by the hostname.

If the dialog says Forward DNS verification failed, you cannot save. Below the heading it says what is wrong, for example that the hostname points to another address or has no record. Fix the record in DNS and type the hostname again. A new record can take a while before the check finds it.

  • To remove your hostname, empty the field and click Reset. The address then gets its default hostname back.
  • The IPv4 and the IPv6 address each have their own reverse DNS. Set them one at a time.
  • If an address shows rDNS not available for this subnet, its reverse DNS cannot be changed.
  • If you change the server’s IP address, set reverse DNS for the new address. See Change the IP address of your VPS.