DNSFly
DNS 4 min read

What is a DNS A Record?

The A record is the most fundamental DNS record. It's what connects your domain name to your server's IP address. Here's everything you need to know.

Quick Answer

A DNS A record (Address record) maps a domain name to an IPv4 address. When someone types "example.com" in their browser, the A record tells the internet which server IP (like 93.184.216.34) to connect to.

What is an A Record?

The "A" in A record stands for "Address". It's the most basic and essential DNS record type.

An A record creates a direct connection between a domain name (like example.com) and an IPv4 address (like 93.184.216.34). Without an A record, browsers wouldn't know which server to contact when you type in a website address.

Think of it like this:

A record is like a contact in your phone. Instead of memorizing "93.184.216.34", you just type "example.com" and DNS looks up the number for you.

How A Records Work

When you visit a website, here's what happens:

1

You type a domain

You enter "example.com" in your browser.

2

Browser asks DNS

"What's the IP address for example.com?"

3

DNS returns A record

"The IP is 93.184.216.34"

4

Browser connects

Your browser connects to that IP and loads the website.

This entire process happens in milliseconds, every time you visit any website.

A Record Examples

Here's what A records look like in DNS:

NameTypeValue (IP)TTL
@A192.0.2.13600
wwwA192.0.2.13600
blogA192.0.2.23600
shopA192.0.2.33600

Note: The @ symbol represents your root domain (example.com without any subdomain).

How to Create an A Record

Creating an A record is straightforward in most DNS providers:

1

Log into your DNS provider (Cloudflare, GoDaddy, Namecheap, etc.)

2

Go to DNS settings or DNS zone editor

3

Click "Add Record" and select type "A"

4

Enter the name (@ for root, or subdomain like "www" or "blog")

5

Enter your server's IPv4 address

6

Set TTL (3600 is a good default) and save

Tip: Most websites need two A records - one for @ (root domain) and one for www, both pointing to the same IP.

How to Check A Records

You can check A records using command line or online tools:

# Using nslookup (Windows/Mac/Linux)

nslookup example.com

# Using dig (Mac/Linux)

dig example.com A +short

Check A Records Online

Use DNSFly to check your A records from 20+ global locations. Verify your domain points to the correct IP worldwide.

Check A Records

Common Uses for A Records

Point domain to web server

The primary use - connecting your domain to your website's hosting server.

Create subdomains

Point blog.example.com, shop.example.com, or app.example.com to different servers.

Load balancing

Multiple A records for the same domain distribute traffic across several servers.

Mail server hostname

MX records point to a hostname (like mail.example.com) which needs an A record to resolve to an IP.

? Frequently Asked Questions