A SmokyHosts VPS kept the previous owner’s rDNS

A SmokyHosts VPS kept the previous owner's rDNS
この記事は約20分で読めます。

A newly provisioned SmokyHosts VPS returned another customer’s domain in its reverse DNS (PTR record). I checked 25 blocklists for IP reputation, and the provider reset rDNS within a day.

Key Takeaways

  • The finding: A freshly provisioned VPS returned a stranger’s domain for dig -x.
  • The scope: 25 blocklists checked, 2 hit. Spamhaus, SpamCop, and IPsum were clean.
  • The fix: One support ticket. The provider reset rDNS to its default within a day, free.
  • The lesson: IP recycling is universal. A one-command check on day one catches it.

A stale PTR record is easy to miss. One `dig -x` finds it

Check reverse DNS the moment your VPS comes up. That single command found the problem here.

  • Only the organization holding the IP block can write a PTR record.
  • A recycled IP can keep the previous customer’s settings.
  • Two of 25 blocklists hit. The major ones were all clean.

This does not hurt you unless the server sends email. The rest of this post shows the actual commands and logs.

The VPS I tested

This was a cheap plan from a Black Friday sale. It is a KVM VPS from SmokyHosts, a provider in Buffalo, US.

ItemSpec
CPU / RAM2 vCPU / 4GB
Storage / transfer40GB SSD / 800GB per month
Port / IP1Gbps / 1 IPv4
Priceabout $20 per year (list price about $32)

4GB for $20 per year is cheap for this spec.

The setup I run on every VPS

I have rented many VPSs, so the first hour is routine. The OS is usually auto-installed and you receive a root password.

The checklist does not change.

  • Create a local key pair and a dedicated login account, then install the public key.
  • Give that account passwordless sudo via NOPASSWD:ALL.
  • Disable root login and password authentication in sshd.
  • Install fail2ban and whitelist the address I administer from.
  • Add swap and set the timezone.

The hardening drop-in looks the same every time.

cat > /etc/ssh/sshd_config.d/00-hardening.conf <<'CONF'
PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
PubkeyAuthentication yes
AllowUsers <your-user>
MaxAuthTries 3
CONF
sshd -t && systemctl reload ssh

I measured the SSH attacks that start within minutes of boot in a previous post.

How to check your VPS reverse DNS in one command

After hardening I always run a few verification commands. The reverse DNS lookup is one of them.

dig +short -x <your IP>

Result:

example-former-owner.com.

That domain is not mine. I never configured it.

What a stale PTR record actually means

PTR maps an IP address back to a hostname. It lives in a special in-addr.arpa zone, separate from your normal domain.

This is the awkward part: only the organization holding the IP block can write it. Not the domain owner, and not the server administrator.

You (customer)      … no permission to write PTR
  ↑ open a ticket
VPS provider        … reseller, zone managed upstream
  ↑
IP block holder     … owns the reverse zone
  ↑
ARIN                … in-addr.arpa

You can see who holds the zone by querying NS records.

dig +short NS 113.0.203.in-addr.arpa
dig +short NS 0.203.in-addr.arpa

Result:

ruth.ns.cloudflare.com.
ken.ns.cloudflare.com.
ns2.<upstream-provider>.io.
ns1.<upstream-provider>.io.

The smallest zone sits on Cloudflare, and an intermediary runs the parent.

You cannot change it yourself. You have to ask.

The domain in the record was no longer in use.

dig +short A example-former-owner.com

The result was empty, so there is no forward record. It was a broken reverse lookup pointing at nothing.

I looked up all 256 addresses in the same /24

I wanted to know whether this was my IP only or an operational pattern. So I looked up every address in the same /24. This only queries DNS. It never connects to the hosts themselves.

Here is the summary.

SUMMARY: default=243  custom=13  none=0
PTR typeCount
*-host.<provider> (provider default)243
Customer-configured rDNS13
No PTR at all0

A few of the custom records (domains masked):

203.0.113.98   server1.<example>.net.
203.0.113.135  <example-a>.com.
203.0.113.137  <example-b>.com.
203.0.113.141  app.<example-c>.co.uk.
203.0.113.227  mail.<example-d>.com.

So this /24 lets customers set their own rDNS. The default is the provider hostname, and only interested customers change it.

That is exactly how a forgotten entry survives cancellation. Thirteen addresses still pointed at customer domains.

Blacklist check: 2 of 25 hit, and both are explainable

I also measured IP reputation. I checked 25 blocklists (DNSBLs) and used a control query.

for z in zen.spamhaus.org b.barracudacentral.org bl.spamcop.net \
         dnsbl.spfbl.net spam.spamrats.com; do
  REV=$(echo 203.0.113.42 | awk -F. '{print $4"."$3"."$2"."$1}')
  echo -n "$z: "
  dig +short "$REV.$z" A
done

Result:

zen.spamhaus.org:          (empty)
b.barracudacentral.org:    127.0.0.2
bl.spamcop.net:            (empty)
dnsbl.spfbl.net:           127.0.0.4
spam.spamrats.com:         (empty)

I ran the same query against 8.8.8.8 as a control, and every list came back empty. My query path is not broken.

The full picture:

ListResult
Spamhaus ZEN / CBL / PBL / SBLall clean
SpamCop / SORBS / PSBL / S5Hall clean
DroneBL / WPBL / blocklist.deall clean
Barracuda BRBLhit (127.0.0.2)
SPFBLhit (127.0.0.4)
SpamRatshit once, clean later
UCEPROTECT L2 / L3hit

The IPsum aggregate list (over 140,000 entries) did not include this IP. So it is not “fully dirty”, just partially.

Three kinds of dirt, three different owners

The hits did not share one cause, and that changes what you can do about them.

KindExampleWho can fix it
Individual IP historySPFBL spam trapTime, or a delist request
Block-level listingBarracudaNeighbours. Hard to delist
Whole ASUCEPROTECT L2/L3Nobody. Ignore it in practice

Individual IP history (SPFBL)

SPFBL flags IPs that sent mail to spam traps. The previous tenant likely did exactly that.

What surprised me is that the answer changes over time. I queried the same IP about nine hours apart.

TimeSPFBL answer
Night127.0.0.5 (spam trap hit)
Morning127.0.0.4 (on hold)

The code went down on its own. SpamRats had also cleared by the morning.

Block-level listing (Barracuda)

Barracuda does not list the whole /24. It lists a contiguous slice, which I confirmed address by address.

203.0.113.128  CLEAN
203.0.113.135  CLEAN
203.0.113.136  127.0.0.2   <- starts here
203.0.113.141  127.0.0.2
203.0.113.142  127.0.0.2   <- my IP
203.0.113.143  CLEAN       <- neighbour is clean

Seven consecutive addresses from .136 to .142 were listed, and .143 was clean. That is block-level registration, not per-IP reputation.

I did not cause this one.

Whole AS (UCEPROTECT)

UCEPROTECT lists at the network level, which you can query directly.

# L2: /24 block notation
dig +short 113.0.203.l2.uceprotect.net A
# L3: AS number notation
dig +short 64500.l3.uceprotect.net A

Result:

127.0.0.2
127.0.0.2

Other customers of the same provider affect my IP’s score. There is nothing I can do about it.

What it breaks: email deliverability (not web or SSH)

The impact is limited to outbound email (SMTP). Web and SSH are unaffected.

  • Receivers are more likely to score your mail as spam.
  • A PTR pointing at someone else’s domain hurts you, even with correct SPF and DKIM.
  • A few APIs and remote access tools check that reverse DNS matches.

I had no plans to send mail, so the practical impact was zero. For web and SSH work, the VPS was perfectly usable.

I would not recommend this IP for mail delivery, though.

I could not find real-world reports

The theory behind this is old news. RFC standards place reverse zones under the resource holder, not the customer.

What I could not find was anyone documenting a real occurrence. Search results are either theory or instructions for requesting a delist.

So I measured it myself. It is odd that a one-command check is this rare in writing.

The provider fixed it within a day

Since the cause was not on my side, I opened a ticket. I asked them to clear the PTR record that pointed at someone else’s domain.

The ticket covered three points.

  • The current PTR is not my domain.
  • It has no matching forward record, so it is broken.
  • If policy requires a PTR, a neutral provider name is fine.

The reply came the next day. It covered three points.

  • They had reset the rDNS for that IP to the provider default.
  • The change would take a few hours to propagate.
  • I cannot edit rDNS from the panel at the moment.

They handled it quickly and understood the request as written.

The change was already visible when I checked, well inside their estimate. Three public resolvers returned the same value.

for ns in 8.8.8.8 1.1.1.1 9.9.9.9; do
  echo -n "$ns: "
  dig +short -x 203.0.113.42 @$ns
done

Result:

8.8.8.8:   203-0-113-42-host.<provider>.com.
1.1.1.1:   203-0-113-42-host.<provider>.com.
9.9.9.9:   203-0-113-42-host.<provider>.com.

The stranger’s domain is gone and the provider default took its place. That default has no A record either, so forward and reverse still do not match. Mail delivery remains a poor fit for this IP.

Why IP reuse leaves stale records behind

The most likely explanation is that the reset at cancellation is not automated.

Three observations support that.

  • 13 addresses in the same /24 still pointed at customer domains.
  • Support described the action as “reset to defaults”, which sounds manual.
  • The panel offers no rDNS control, so every change goes through a human.

IP recycling itself is unavoidable. IPv4 is exhausted, so released addresses return to the pool.

The real question is whether a provider clears the old settings at that point. Automation prevents this class of problem. Manual processes leak.

I do not think this was intentional either. Leaving a stranger’s domain in a PTR record gains nobody anything. The domain it pointed to was dormant.

This is also not unique to SmokyHosts. Any provider that recycles IPv4 faces the same failure mode, and most budget hosts handle it by hand. SmokyHosts answered the ticket within a day and fixed it at no cost. That is the part worth weighing if you are deciding whether to buy.

FAQ

Is a stale PTR record dangerous?

No. It affects email reputation, not web or SSH access.

Can I change my VPS reverse DNS myself?

Usually not. The IP block holder owns the reverse zone. Here the provider had to reset it, and the panel offered no rDNS control.

How long does a blocklist removal take?

It varies. SPFBL and SpamRats cleared within hours in this test, while Barracuda stayed listed.

Should I avoid providers that recycle IPs?

Every provider reuses IPv4 addresses. What matters is whether they reset the old settings when a customer leaves.

Checklist: what to verify on a new VPS

If you rent a VPS on a recycled IP, one reverse lookup on day one shows you the state.

dig +short -x <your IP>

If the name is unfamiliar, open a ticket. You cannot fix it yourself.

Here is the checklist I would run on any new VPS.

  • Run dig -x and read the PTR (this one command found the issue)
  • Query a few blocklists (Spamhaus / Barracuda / SPFBL)
  • Check the reverse zone’s NS records to see who controls it
  • Confirm the allocation with whois
  • Harden SSH first, because scanning starts immediately
  • Read the first minutes of logs for authentication attempts

A blocklist hit is not an automatic failure. There are three different causes, and only some are yours to fix.

For a server that never sends email, this setup worked fine. Cheap VPS hosting is still a good deal if you accept the tradeoffs.

コメント

タイトルとURLをコピーしました