DNS records control how your domain connects to different services. The most common types are:
1. A Record
Points a domain or subdomain to an IPv4 address.
Example: example.com → 192.0.2.1
2. CNAME Record
Points one domain or subdomain to another domain name instead of an IP address.
Example: www.example.com → example.com
3. MX Record
Specifies which mail server should receive emails for your domain. It is mainly used for email services.
4. TXT Record
Stores text-based information in DNS. It is commonly used for domain verification, SPF, DKIM, and other security-related configurations.
In short:
- A → Connects domain to an IPv4 address
- CNAME → Connects one domain to another domain
- MX → Handles incoming email
- TXT → Stores verification and security information