DNS Configuration

Understanding DNS configuration is essential for routing traffic through Atomic Edge. This guide covers DNS setup, verification, and best practices.

Prerequisites

Before changing DNS:

  • Add your site in the Atomic Edge dashboard
  • Note the edge endpoint IPs provided (both IPv4 and IPv6)
  • Confirm you have access to edit DNS for your domain
  • Keep your origin server IP documented for validation and rollback

DNS Record Types

A Records (IPv4)

For root domains (apex), use an A record pointing to the IPv4 address provided by Atomic Edge.

Type: A
Name: @ (or your domain)
Value: [IPv4 address from Atomic Edge]
TTL: 300 (during setup)

AAAA Records (IPv6)

If your endpoint supports IPv6, add an AAAA record for dual-stack connectivity.

Type: AAAA
Name: @ (or your domain)
Value: [IPv6 address from Atomic Edge]
TTL: 300 (during setup)

CNAME Records (Subdomains)

For subdomains, you can use a CNAME pointing to the endpoint hostname.

Type: CNAME
Name: www
Value: [endpoint hostname from Atomic Edge]
TTL: 300 (during setup)

Important: CNAME records cannot be used on root domains (apex). Use A records for apex domains.

WWW Configuration

If your site serves both example.com and www.example.com:

  1. Add an A record for the root domain (@)
  2. Add an A record for www pointing to the same edge IP
  3. Optionally, add AAAA records for both if using IPv6

Multiple Edge Endpoints

For redundancy, you can add multiple A records for the same hostname:

example.com A 203.0.113.100
example.com A 203.0.113.101

DNS clients typically round-robin between multiple records.

TTL Best Practices

Phase Recommended TTL Reason
Setup/Testing 300 seconds (5 min) Fast propagation and rollback
Stable Production 3600-86400 seconds Reduced DNS query volume

Tip: Lower your TTL 24-48 hours before making changes to ensure the old value expires from caches.

Verifying DNS Configuration

Using dig Command

# Check A record
dig example.com A +short

# Check AAAA record
dig example.com AAAA +short

# Check against specific resolver
dig @8.8.8.8 example.com A +short
dig @1.1.1.1 example.com A +short

Verifying Traffic Routing

After DNS propagation:

# Check HTTP headers
curl -I https://example.com

# Verify response comes from your origin content
curl https://example.com

Testing Before DNS Change

You can test the edge routing without changing public DNS by editing your local hosts file:

Linux/Mac: /etc/hosts
Windows: C:\Windows\System32\drivers\etc\hosts

203.0.113.100 example.com
203.0.113.100 www.example.com

Remove these entries after testing.

Rollback Procedure

To bypass the edge quickly:

  1. Change DNS records back to your origin IP
  2. Wait for propagation (faster with low TTL)
  3. Some clients may cache longer than TTL—plan accordingly

Best practice: Keep your original DNS values documented before any changes.

Host Header Configuration

Atomic Edge forwards the original Host header to your origin. Ensure your web server is configured to serve:

  • Your apex domain (e.g., example.com)
  • The www variant if applicable (e.g., www.example.com)

Origin Firewall Protection

Once DNS is stable and verified:

  1. Restrict inbound HTTP/HTTPS on your origin
  2. Only allow traffic from Atomic Edge edge endpoint IPs
  3. This prevents attackers from bypassing the WAF

Troubleshooting

DNS Not Resolving to Edge IP

  • Wait for propagation (can take up to 60 minutes)
  • Verify record at your DNS provider
  • Check using multiple public resolvers
  • Flush local DNS cache

SSL Certificate Errors

  • Certificate provisioning starts after DNS points to edge
  • Ensure port 80 is reachable for HTTP validation
  • Check for CAA records that might block issuance

Partial Protection (Some Subdomains)

  • Each hostname needs its own DNS record
  • Verify each subdomain record is updated
  • Ensure hostname is configured in dashboard

Migration Checklist

  1. ☐ Add site to Atomic Edge dashboard
  2. ☐ Note edge endpoint IPs (IPv4 and IPv6)
  3. ☐ Whitelist edge IPs in origin firewall
  4. ☐ Lower DNS TTL 24-48 hours before cutover
  5. ☐ Update DNS records during low-traffic window
  6. ☐ Verify propagation with external resolvers
  7. ☐ Test WAF blocking with safe test strings
  8. ☐ Monitor logs for false positives (24-48 hours)
  9. ☐ Lock down origin firewall to edge IPs only
  10. ☐ Increase TTL once stable

Frequently Asked Questions