PTR Records and Reverse DNS for a VPS: Why You Need One and How to Order a Second IPv4 in WeaselCloud

A PTR record maps an IP back to a hostname and mail servers check it first. How to order a PTR and an extra IPv4 and confirm the change took effect.

Domains and DNS

The mail server is running, the queue is clear, and the message left the box - but it never reaches the inbox because Gmail quietly filed it under spam. Almost always the cause is the same: the sending IP address has no valid PTR record, the reverse DNS entry that maps an IP back to a hostname. Here's what a PTR record actually does, why it matters the moment you run your own mail server, and how to request one - plus a second IPv4 address if you need it - from the WeaselCloud client area.

What a PTR record is and how it differs from a normal DNS record

A standard A record ties a domain to an IP address: type example.com into a browser, and DNS hands back the server's IP. A PTR record (short for pointer) runs the lookup the other way: you have an IP address and want to know what hostname is registered against it. This is called reverse DNS, or rDNS.

The difference isn't just direction, it's ownership. You control the records for example.com yourself, through your registrar or your own name servers. The reverse record for an IP lives in a zone that belongs to whoever holds that block of addresses - for a WeaselCloud VPS, that's WeaselCloud's own address space. So a PTR change always goes through the hosting provider, never through your domain's DNS panel.

Why unconfigured PTR sends mail from a VPS straight to spam

If you run your own mail server on a VPS - for outbound company mail, for a newsletter, or just so your application can send through a local SMTP relay instead of a third-party service - a PTR record stops being a technicality and becomes a precondition for delivery.

Receiving mail servers such as Gmail, Yahoo, and Mail.ru don't only look at headers and content. Before anything else, they weigh the reputation of the sending IP, and one of the cheapest signals to check is whether that IP even has a PTR record, and whether it roughly matches the hostname the server announced during the SMTP handshake (the HELO/EHLO command). A properly configured mail server usually has a sensible PTR like mail.example.com. IP addresses that spam comes from typically have no PTR at all, or one nobody bothered to set to anything meaningful.

A stricter check called FCrDNS (forward-confirmed reverse DNS) goes one step further: the PTR for your IP resolves to a hostname, and the forward A record for that hostname resolves back to the same IP. That round-trip match reads as a strong signal that the sender is properly set up, not a compromised machine on autopilot. A missing PTR isn't an automatic ban, but for many providers it's enough on its own to knock the score down before SPF and DKIM are even checked.

The VPS service page in the WeaselCloud client area - there is no IP management section on it

Who actually needs a PTR - and who can skip this entirely

If your server only handles a website or an API, PTR is irrelevant - inbound HTTP requests don't care about it. It matters the moment something on that server sends mail on its own behalf: a mail daemon like Postfix or Exim, transactional email through a local SMTP relay, a newsletter. From that point on, PTR is what makes SPF, DKIM, and DMARC actually useful - they confirm a sender is authorized, but some receivers never get that far if the IP already looks suspicious at the PTR stage.

ProviderWhat it checks via reverse DNSTypical result without a valid PTR
Gmailpresence of a PTR, rough match against the HELO hostnamemessage accepted but frequently routed to spam
Yahoopresence of a PTR, FCrDNShard bounce during the SMTP session in a share of cases
Mail.rupresence of a PTR, overall IP reputationmessage usually lands in the spam folder, especially for bulk sending

The exact thresholds change without much notice and aren't fully published - treat the table as a general pattern, not a guaranteed rule set for any given date.

How the in-addr.arpa reverse zone works, in plain terms

For IPv4, reverse lookups run through a special domain called in-addr.arpa. The address is written into it backwards: for 203.0.113.10, the reverse zone is 10.113.0.203.in-addr.arpa, and that's where the PTR record actually lives. The zone is delegated down a chain from regional internet registries (RIPE for Europe) to the provider that owns the address block. In practice that means one thing for a WeaselCloud customer: to get a PTR set, go to the client area, not to your domain's DNS zone.

How to order an additional IPv4 address in WeaselCloud

Every WeaselCloud VPS ships with one IPv4 address by default. You need a second one if a single server hosts several sites still relying on per-IP SSL setups, if you're running a dedicated mail server and don't want it sharing reputation with the main site's IP, or if an application needs to bind to more than one address. IPv4 is a limited resource - every provider's free pool is finite - so an additional address is usually a paid add-on rather than something assigned automatically.

An additional address is ordered by yourself in the billing, no ticket needed. Open the list of services in the client area, choose the server and click Upgrade/Downgrade Options. There is a slider for the number of IP addresses: every extra address costs $1.50 a month and goes into the cart. Pay for the order and the address is attached to the server. The same slider is in the order form of a new VPS (from 1 to 10 addresses).

Upgrade/Downgrade Options: number of IP addresses of the server in the WeaselCloud client area

Right after the purchase the address appears in the panel, but it does not reach the system by itself: DHCP hands the server only one address. The rest must be written into the network settings of the operating system, or it will not know it has a second IP. The exact method depends on the distribution (on Ubuntu 22.04/24.04 that's netplan). There is a trap: after the purchase DHCP may promote the new address to primary, and the server loses the old one. How to avoid that and how to add the addresses is covered in the guide: Several IPv4 on one VPS

How to request a PTR for your IP address

Once an IPv4 address exists — the default one or an additional one — its PTR is set by yourself, no ticket needed. Open the service page in the client area, go to the IP addresses tab, click Edit reverse DNS next to the address and enter the hostname the reverse record should point to. Usually that is the domain of your mail server, for example mail.example.com. The panel checks that the hostname already has an A record pointing to this very IP: if it does not, the form asks you to create the record at your registrar or in your own DNS first and save the form again. That check also gives you the FCrDNS match, which is the whole point of a PTR.

How to confirm the PTR record took effect

Two standard tools cover this on virtually any operating system. The first is dig with the -x flag, which runs a reverse lookup without making you manually construct the in-addr.arpa address:

dig -x 203.0.113.10 +short
  • -x switches dig into reverse-lookup mode - you feed it an IP instead of a name
  • +short trims the output down to just the answer, skipping the query headers

If the PTR is set, you'll get one line back, something like mail.example.com. - the trailing dot is normal, it marks a fully qualified name. An empty response means the record hasn't been applied yet, or was never requested.

The second option is nslookup, available even on systems that don't ship dig:

nslookup 203.0.113.10

Look for the line reading name = mail.example.com. in the output - that's the current PTR for the address. If the name server returns something like ** server can't find ... : NXDOMAIN instead, no reverse record exists for that address yet.

How long propagation takes

PTR records are served from WeaselCloud's own name servers - unlike changing regular records at a third-party registrar, there's no need to wait for independent nameservers worldwide to catch up. Changes are usually visible within a few minutes to a couple of hours. If a resolver somewhere had already cached the old, empty answer, it clears later on that particular network - hence the more cautious upper bound providers quote, up to 24 hours. If dig -x still shows nothing after a full day, that's worth a support ticket rather than waiting further.

FAQ

What is a PTR record

A PTR record is a reverse DNS entry that maps an IP address back to a hostname, the mirror image of a regular A record (domain to IP). It lives in the special in-addr.arpa zone, controlled by whoever owns the IP block, not by whoever owns the domain.

Why does mail from my server go to spam

The most common reason is a missing or mismatched PTR record on the sending IP. Receiving servers like Gmail and Yahoo check whether the sending IP has a reverse record and whether it roughly matches the hostname announced during the HELO handshake - without that match, a message loses credibility before SPF and DKIM are even evaluated.

How do I check a PTR record

Run dig -x <IP> +short - it returns the hostname if one is set, or nothing if it isn't. The alternative is nslookup <IP>, where the hostname shows up on the line starting with name =.

How do I get an additional IPv4 address for my VPS

Yourself, in the client area: open Upgrade/Downgrade Options on the service page and move the slider for the number of IP addresses. Every extra address costs $1.50 a month, and you do not need to contact support.

How long does a PTR record take to propagate

Usually a few minutes to a couple of hours, since the record is served directly from the provider's own name servers. Up to 24 hours is the cautious upper bound for cases where a resolver somewhere had already cached the previous, empty answer.

Takeaways

  • A PTR record (reverse DNS) maps an IP address to a hostname - the reverse of a standard A record.
  • It lives in the in-addr.arpa zone controlled by the IP block's owner - for your VPS, that's WeaselCloud, not your domain registrar.
  • Without a valid PTR, mail from a self-hosted server routinely lands in spam at Gmail, Yahoo, and Mail.ru - it's one of the first checks a receiving server runs.
  • Order an additional IPv4 yourself in the client area (Actions → Upgrade/Downgrade Options), and set a PTR on the IP addresses tab of the service page (Edit reverse DNS): neither needs a ticket.
  • Before requesting a PTR, make sure your mail server's hostname already has an A record pointing back to the same IP - that's what gives you the FCrDNS match.
  • Verify the result with dig -x <IP> +short or nslookup <IP>.
  • Propagation usually takes minutes to a couple of hours; up to 24 hours only in edge cases involving cached answers.

What's next

Didn't find an answer?

The support team will help.