DNS records setup guide
Check your domain for DMARC, DKIM, SPF and MX records. Get a free report.
April 07, 2024
DNS records are like the central point for internet functions. They allow domain names to get translated into IP addresses that computers understand. When you type a website URL, DNS records get to know where they should direct the request.
DNS helps you control your email routing, subdomains, and authentication. It helps you run functions that keep your online services working smoothly. Proper DNS configuration ensures that your websites load quickly and emails reach their intended recipients.
DNS makes security measures like SPF and DKIM work effectively. Without well-managed DNS records, your website can face downtime and slow performance
What are the Common Types of DNS Records?
A single domain can have multiple DNS records, each serving a specific function. Some handle website traffic, while others manage emails or verify domain ownership.
When you choose the correct combination of records, you ensure seamless communication between web servers. This way, email systems and users can also communicate effectively. Different DNS records work together to provide reliability, security, and efficiency in handling domain-related tasks.
Top DNS Record Types And Their Uses
Here are the major types of DNS records that you need to know:
1) A Record: An A record helps you map your domain name to an IPv4 address. It is the most basic DNS record and is responsible for directing your traffic to the correct server.
Example: example.com. 3600 IN A 192.168.1.1
If you own a website, the A record ensures your visitors reach the correct IP address where your site is hosted.
2) AAAA Record (Quad A Record): Similar to an A record, AAAA records map your domain name to an IPv6 address. IPv6 is like the future of the internet due to the depletion of IPv4 addresses. AAAA records are now used by modern websites and applications.
Example:
example.com. 3600 IN AAAA 2001:db8::ff00:42:8329
3) CNAME Record (Canonical Name Record): A CNAME record allows your domain to act as an alias for another domain. Instead of pointing directly to an IP address, it points to another domain name.
This is useful for your branding, subdomains, and integrating third-party services like CDN or email providers.
Example: www.example.com. 3600 IN CNAME example.com.
4) MX Record (Mail Exchange Record): MX records help you determine how email messages are routed by specifying the mail servers responsible for handling a domain's email traffic.
If you don’t properly configure MX records, emails won’t be delivered.
Example: example.com. 3600 IN MX 10 mail.example.com.
5) TXT Record (Text Record): A TXT record stores text-based data associated with a domain. It is used for security and authentication purposes. It helps you verify your domain ownership, email authentication (SPF, DKIM, and DMARC), and even secure your communications effortlessly.
Example: example.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
6) NS Record (Name Server Record) NS records help you specify which name servers are authoritative for a domain. These servers handle your DNS queries for that domain and direct users to the correct locations.
If your NS records are incorrect, your website becomes unreachable.
Example: example.com. 3600 IN NS ns1.exampledns.com.
7) PTR Record (Pointer Record) PTR records perform reverse DNS lookups and map an IP address to a domain name. This is used in email verification to reduce spam and make sure that an IP address matches a legitimate domain.
Example: 1.1.168.192.in-addr.arpa. 3600 IN PTR example.com.
8) SRV Record (Service Record) SRV records define the location of specific services. It tells you about VoIP or messaging services. SRV records help applications connect to the right server automatically.
9) SOA Record (Start of Authority Record) The SOA record contains important administrative information about a domain that includes contact details, update intervals, and DNS zone settings.
It is important to manage your DNS changes efficiently.
Example: example.com. 3600 IN SOA ns1.exampledns.com. admin.example.com. (
2024031501 ; Serial
3600 ; Refresh
1800 ; Retry
1209600 ; Expire
86400 ) ; Minimum TTL
How DNS Records Work Together?
Each DNS record helps you in a specific role, but they don’t operate in isolation. When you use a domain name, the request goes with a combination of A, CNAME, MX, and NS records.
For example, a website might have an A record that points to its hosting server. It also combines with an MX record in directing emails.
When you pair up these records it comes with a complete and functional domain setup that helps users to access websites and send emails without issues.

DNS Misconfigurations and How to Avoid Them?
Incorrect DNS settings end up with website downtime and lost emails. One of the most common mistakes is using a CNAME record for a root domain, which many DNS providers don’t support. When you mix A and CNAME records for the same domain, it also creates conflicts.
Moreover, if you fail to update DNS records while changing hosting providers or email services, this can result in disruptions. To avoid these issues, you need to always double-check DNS configurations. You can use TTL (Time-To-Live) settings wisely for faster updates. Remember that you need to ensure that all security-related records like SPF, DKIM, and DMARC are in place.
FAQs
What is the most important DNS record for a website? The A record is the most important for website working. It directs traffic to the correct IP address.
How do I check my DNS records? You can check DNS records using tools like DmarcDkim.com.
Can I use both A and CNAME records for the same domain? No, an A record and CNAME record cannot coexist for the same domain because a CNAME must point to another domain, not an IP address.
How long does it take for DNS record changes to update? Changes to DNS records usually take a few minutes to 48 hours. It depends on the TTL settings and DNS propagation.
What happens if my DNS records are incorrect? Incorrect DNS records can result in an inaccessible website. Even your emails can bounce.
How do MX records affect email deliverability? With properly configured MX records, your emails are delivered to the right mail servers. If it’s not correctly setup, your emails may not be received.
What is TTL in DNS, and how does it impact record updates? TTL (Time-To-Live) helps you to know how long DNS records are cached. Lower TTL values lead to faster updates but can increase DNS query loads.
Why is a TXT record needed for email authentication? TXT records store SPF, DKIM, and DMARC data, which help you verify email authenticity and prevent spoofing or phishing attacks.
How to Configure DKIM, SPF and DMARC records in MailerLite?
MailerLite ensures your emails are safe and secure. It generates DNS records to authenticate your domain and give your emails a unique signature. You can configure these records in MailerLite and add them to your DNS provider within a few steps. In this guide, we will walk you through the email authentication process with MailerLite. So let's begin!
Read more →
Check domain and follow the instructions to nail down your DMARC configuration.
No expert knowledge needed!