Learn about different types of DNS records, what they do, and when to use each type for your domain management.
What are DNS Records?
DNS records are instructions stored in DNS servers that tell the internet how to handle requests for your domain. Each record type serves a specific purpose in directing traffic and services.
A Records (Address Records)
Purpose: Point a domain or subdomain to an IPv4 address
Format: Domain ? IP Address
• yourdomain.com ? 192.168.1.100
• www.yourdomain.com ? 192.168.1.100
When to Use A Records:
• Point your main domain to your web server
• Create subdomains that point to specific servers
• Direct traffic to different IP addresses
• Set up load balancing with multiple A records
A Record Examples:
• @ (root domain) ? 192.168.1.100
• www ? 192.168.1.100
• blog ? 192.168.1.101
• shop ? 192.168.1.102
AAAA Records (IPv6 Address Records)
Purpose: Point a domain to an IPv6 address
Format: Domain ? IPv6 Address
• yourdomain.com ? 2001:0db8:85a3:0000:0000:8a2e:0370:7334
When to Use AAAA Records:
• Your server supports IPv6
• Future-proofing your DNS setup
• Improved performance for IPv6 users
CNAME Records (Canonical Name)
Purpose: Point a subdomain to another domain name
Format: Subdomain ? Domain
• www.yourdomain.com ? yourdomain.com
• blog.yourdomain.com ? yourdomain.com
When to Use CNAME Records:
• Point www to your main domain
• Create aliases for subdomains
• Point to external services (CDN, email providers)
• Simplify DNS management
CNAME Limitations:
• Cannot be used for root domain (@)
• Cannot coexist with other record types for same name
• Creates additional DNS lookup
CNAME Examples:
• www ? yourdomain.com
• mail ? ghs.google.com (for Google Workspace)
• blog ? yourdomain.com
• cdn ? d1234.cloudfront.net
MX Records (Mail Exchange)
Purpose: Direct email for your domain to mail servers
Format: Domain ? Mail Server (with priority)
• yourdomain.com ? mail.yourdomain.com (priority 10)
MX Record Components:
• Priority: Lower numbers = higher priority
• Mail Server: Hostname of mail server
• TTL: How long to cache the record
MX Record Examples:
• Priority 10: mail.yourdomain.com
• Priority 20: backup-mail.yourdomain.com
• Priority 30: mail2.yourdomain.com
Common MX Configurations:
• Google Workspace: aspmx.l.google.com (priority 1)
• Microsoft 365: yourdomain-com.mail.protection.outlook.com
• Self-hosted: mail.yourdomain.com
TXT Records (Text Records)
Purpose: Store text information for various purposes
Common TXT Record Uses:
• SPF: Email authentication
• DKIM: Email signing
• DMARC: Email policy
• Domain verification: Prove domain ownership
• Site verification: Google, Bing, etc.
SPF Record Example:
• Name: @
• Value: v=spf1 include:_spf.google.com ~all
DKIM Record Example:
• Name: default._domainkey
• Value: v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3...
Domain Verification Example:
• Name: @
• Value: google-site-verification=abc123def456
NS Records (Name Server)
Purpose: Specify which name servers are authoritative for your domain
When to Modify NS Records:
• Changing DNS providers
• Using external DNS services
• Delegating subdomains
NS Record Examples:
• ns1.yourhostingprovider.com
• ns2.yourhostingprovider.com
PTR Records (Reverse DNS)
Purpose: Reverse DNS lookup (IP to domain)
Uses:
• Email server reputation
• Security and logging
• Usually managed by our hosting service
SRV Records (Service Records)
Purpose: Specify services available on your domain
Common Uses:
• VoIP services
• Instant messaging
• Game servers
• Microsoft services
DNS Record Best Practices
- Use appropriate TTL values: Lower for testing, higher for stability
- Keep records organized: Document what each record does
- Use CNAME for aliases: Easier to manage than multiple A records
- Set up proper MX records: Include backup mail servers
- Implement email authentication: SPF, DKIM, DMARC records
- Regular monitoring: Check DNS propagation and functionality
Testing DNS Records
Online Tools:
• nslookup.io - Simple DNS lookup
• mxtoolbox.com - Comprehensive DNS testing
• whatsmydns.net - Global propagation checking
• dig.net - Advanced DNS queries
Command Line Tools:
• nslookup yourdomain.com
• dig yourdomain.com
• ping yourdomain.com
DNS and Domain Support
Need help with complex DNS configurations? Our support team can assist with:
• Advanced DNS record management
• Domain migration and transfers
• Custom subdomain configurations
• Email routing and MX record setup
• SSL certificate installation and management
Submit a support ticket for expert DNS and domain assistance.