Pointing a Domain to a Server: A, AAAA and CNAME Guide
Point your domain to a server: A, AAAA, CNAME, MX and TXT record types, DNS propagation time, testing with dig/nslookup, and common mistakes.
What is a PTR record, how it affects email deliverability and security, how to set it up in the REXE panel, verification with dig -x, and common issues.
Reverse DNS (rDNS) is the DNS mechanism that translates an IP address into a domain name. While normal DNS translates a domain name to an IP, reverse DNS does the opposite. Also known as a PTR (Pointer) record, this mechanism is critically important for email servers and security systems.
A PTR record specifies which domain name an IP address belongs to. For example:
# Normal DNS (Forward DNS)
example.com. → 203.0.113.50
# Reverse DNS (PTR)
203.0.113.50 → mail.example.com
PTR records are stored in the special in-addr.arpa DNS zone:
# PTR record for 203.0.113.50
50.113.0.203.in-addr.arpa. IN PTR mail.example.com.
# For IPv6 (ip6.arpa)
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. IN PTR mail.example.com.
The reversed IP address is used: 203.0.113.50 → 50.113.0.203.in-addr.arpa
Email servers verify the PTR record when checking whether incoming messages are spam. Emails from IPs with no PTR record or misconfigured PTR records:
Major email providers (Gmail, Outlook, Yahoo) typically reject emails from servers without PTR records.
The most reliable configuration is when the PTR record matches the A record:
# 1. PTR record: IP → Domain
203.0.113.50 → mail.example.com
# 2. A record: Domain → IP (must be the same IP)
mail.example.com → 203.0.113.50
This bidirectional verification (FCrDNS) significantly improves email deliverability.
To set up a PTR record in the REXE customer panel:
mail.example.com).A PTR record can only be set by the owner of the IP address (the hosting provider). You need to request it from REXE, not from your domain registrar.
mail.example.com, server1.example.com).# Reverse DNS query
dig -x 203.0.113.50
# Short output
dig -x 203.0.113.50 +short
# With a specific DNS server
dig -x 203.0.113.50 @8.8.8.8
# For IPv6
dig -x 2001:db8::1
Example output:
;; ANSWER SECTION:
50.113.0.203.in-addr.arpa. 3600 IN PTR mail.example.com.
# Reverse DNS query
host 203.0.113.50
# Example output:
# 50.113.0.203.in-addr.arpa domain name pointer mail.example.com.
nslookup 203.0.113.50
# Example output:
# 50.113.0.203.in-addr.arpa name = mail.example.com.
# 1. Check PTR record
PTR=$(dig -x 203.0.113.50 +short)
echo "PTR: $PTR"
# 2. Check A record of PTR
A=$(dig +short $PTR)
echo "A record: $A"
# 3. Do they match?
if [ "$A" = "203.0.113.50" ]; then
echo "FCrDNS: SUCCESS"
else
echo "FCrDNS: FAILED"
fi
Postfix can perform PTR checks for incoming connections:
# /etc/postfix/main.cf
smtpd_client_restrictions =
permit_mynetworks,
reject_unknown_client_hostname, # Reject IPs without PTR record
permit
A PTR record alone is not sufficient. For email security:
# SPF record
example.com. IN TXT "v=spf1 ip4:203.0.113.50 ~all"
# DKIM (mail._domainkey)
mail._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=..."
# DMARC
_dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
Symptom: Emails are going to spam or being rejected.
# Check
dig -x SERVER_IP +short
# If output is empty, there is no PTR record
Solution: Add a PTR record from the REXE customer panel.
Symptom: FCrDNS check fails.
# Check PTR record
dig -x 203.0.113.50 +short
# Output: mail.example.com.
# Check A record
dig mail.example.com A +short
# Output: 203.0.113.237 (different IP — problem!)
Solution: Update the A record to the same IP as the PTR.
PTR records are subject to propagation time just like regular DNS records. Wait 24-48 hours after making changes.
# Check from different DNS servers
dig -x 203.0.113.50 @8.8.8.8 +short
dig -x 203.0.113.50 @1.1.1.1 +short
There should not be multiple PTR records for one IP. This can cause email issues.
# List all PTR records
dig -x 203.0.113.50
# There should be only one PTR record in the ANSWER SECTION
After setting up the PTR record, check if your IP is on any blacklists:
# Check from command line
for bl in zen.spamhaus.org bl.spamcop.net b.barracudacentral.org; do
result=$(dig +short 50.113.0.203.$bl)
if [ -n "$result" ]; then
echo "BLACKLISTED: $bl ($result)"
else
echo "Clean: $bl"
fi
done
When setting up a new server or changing IPs, setting up the PTR record should be one of the first things you do. Don't skip this step, especially if you plan to send email.
A PTR record is a critical DNS component for email deliverability and network security. Easily configured from the REXE panel, a PTR record increases your server's trustworthiness and prevents your emails from ending up in spam. Make sure your PTR and A records match with FCrDNS configuration.
Technically yes, but major email providers (Gmail, Outlook) typically mark or reject emails from IPs without PTR records as spam. If you're running an email server, a PTR record is essential.
A PTR record can only be set by the hosting provider that owns the IP address. You need to request it from the REXE customer panel or support team, not from your domain registrar.
The PTR record should be the FQDN (fully qualified domain name) of your email server. For example: mail.example.com or smtp.example.com. An A record must be created for this domain pointing to the same IP (FCrDNS).
PTR records typically propagate within 1-4 hours, but some DNS caches may hold them for 24-48 hours. You can check if it's active with the command 'dig -x YOUR_IP_ADDRESS +short'.
Yes, a separate PTR record is required for each IP that sends email. If you use multiple IPs, set up a PTR record for each one from the REXE panel.
Point your domain to a server: A, AAAA, CNAME, MX and TXT record types, DNS propagation time, testing with dig/nslookup, and common mistakes.
What are nameservers, how to change NS at your registrar, propagation time, checking with whois/dig, and common registrar interfaces guide.
Historical stats with vnstat, real-time monitoring with iftop, per-process bandwidth with nethogs, nload usage, and interpreting results.