Custom DNS, DoT Encryption & Reverse PTR Records
Optimize recursive IPv4/IPv6 Anycast DNS resolvers with systemd-resolved and DNS-over-TLS (DoT), verify dual-stack lookups, and request Reverse DNS (PTR) records.
Fast, reliable recursive DNS resolution minimizes outbound API lookup latency and speeds up package installations, while a valid Reverse DNS (PTR record) is a mandatory authentication requirement for self-hosted mail servers and strict enterprise security audits.
1. Optimizing Upstream Anycast DNS Resolvers
We recommend configuring globally distributed Anycast DNS resolvers supporting both IPv4 and IPv6:
- Cloudflare Anycast DNS:
1.1.1.1/1.0.0.1(IPv4) &2606:4700:4700::1111(IPv6) - Google Public DNS:
8.8.8.8/8.8.4.4(IPv4) &2001:4860:4860::8888(IPv6) - Quad9 Security DNS:
9.9.9.9(IPv4) &2620:fe::fe(IPv6)
1.1 Configuring systemd-resolved (Ubuntu 22.04 / 24.04 / 26.04 LTS)
Modern Ubuntu releases manage DNS resolution through systemd-resolved and support encrypted DNS-over-TLS (DoT):
sudo mkdir -p /etc/systemd/resolved.conf.d
cat << 'EOF' | sudo tee /etc/systemd/resolved.conf.d/99-flawlessnode-dns.conf
[Resolve]
DNS=1.1.1.1 8.8.8.8 2606:4700:4700::1111 2001:4860:4860::8888
FallbackDNS=1.0.0.1 9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=allow-downgrade
EOF
# Restart resolver service and verify active DNS servers
sudo systemctl restart systemd-resolved
resolvectl status
1.2 Direct /etc/resolv.conf Configuration (Debian 12 / 13 & Rocky / AlmaLinux)
On minimal Debian or RHEL-based distributions without systemd-resolved, write directly to /etc/resolv.conf:
cat << 'EOF' | sudo tee /etc/resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 2606:4700:4700::1111
options timeout:1 attempts:2 rotate
EOF
[!TIP] If your DHCP client overwrites
/etc/resolv.confacross reboots, lock the file using the immutable filesystem attribute:sudo chattr +i /etc/resolv.conf(usesudo chattr -i /etc/resolv.confwhen you need to edit it later).
2. Verifying Dual-Stack IPv6 DNS Lookups
All FlawlessNode Los Angeles instances include native IPv4 and /64 IPv6 connectivity. Verify both A (IPv4) and AAAA (IPv6) resolution and ICMPv6 reachability:
# Test IPv6 ICMP reachability to Cloudflare DNS
ping -6 -c 4 2606:4700:4700::1111
# For comprehensive Netplan / interfaces setup, see the IPv6 Dual-Stack Guide
For full interface configuration and /etc/gai.conf precedence tuning, refer to IPv6 Dual-Stack Configuration & Routing Optimization.
3. Requesting Reverse DNS (PTR) Records
3.1 What Is a PTR Record?
While standard forward DNS maps a domain name to an IP address (mail.example.com -> 154.xxx.xxx.xxx), Reverse DNS (PTR) maps the IP address back to a verified hostname (154.xxx.xxx.xxx -> mail.example.com).
Major email providers (Gmail, Microsoft 365, Yahoo, iCloud) strictly verify that connecting SMTP servers have a matching forward and reverse DNS record (FCrDNS). Without a valid PTR record, outbound emails will be rejected or routed to spam.
3.2 How to Request PTR Setup:
- Configure Forward DNS First: At your domain registrar or DNS provider (e.g., Cloudflare), create an
Arecord (andAAAArecord for IPv6) pointing your hostname (such asmail.yourdomain.com) to your FlawlessNode instance IP; - Submit a Support Ticket: Log in to the FlawlessNode Client Portal and open a ticket with the following details:
Subject: Request Reverse DNS (PTR) Setup Hello FlawlessNode Team, Please configure the Reverse DNS (PTR) record for my instance: - IPv4 / IPv6 Address: 154.xxx.xxx.xxx - Target Hostname: mail.yourdomain.com The forward A/AAAA record has already been configured and propagated. Thank you! - Verify Propagation: Once our network engineers update the authoritative
in-addr.arpa/ip6.arpazone (typically within 12–24 hours), verify usingdig:dig -x 154.xxx.xxx.xxx +short # Expected output: mail.yourdomain.com.