Understanding A Records in DNS
A records are one of the most important types of DNS records. They connect a domain name to an IPv4 address, making it possible for users to visit your website using a human-readable address like example.com
instead of a numeric IP.
What Is an A Record?
An A record, or "Address record," tells the internet where a website is hosted by linking a domain name to an IPv4 address. For example:

This process relies on A Records, which map a domain name to its corresponding IPv4 address in the DNS system.
For instance, an A Record for example.com
might point to an IP address like 192.0.2.1
, ensuring accurate routing to the server.
Without properly configured A Records, DNS lookups would fail, preventing users from accessing websites.
These records are essential for the internet's functionality, acting as the backbone of domain-to-server connections.
How to Look Up an A Record
You can check a domain's A record using built-in tools on your computer. Follow the steps below based on your operating system:
Windows
1. Click the Start menu and type cmd or PowerShell.
2. Press Enter to open the Command Prompt or PowerShell.
3. Type the following command and press Enter:
macOS
1. Open Finder, go to Applications > Utilities, then open Terminal.
2. Type one of the following commands and press Return:
or
Linux
1. Open your terminal. You can usually do this with Ctrl+Alt+T or by searching for "Terminal" in your application menu.
2. Type one of the following commands and press Enter:
or
If dig
is not installed, you can add it with:
Why A Records Matter
- They link your domain name to the IP address of your server.
- They are used for both main domains and subdomains (e.g.,
www.example.com
). - They support multiple entries for redundancy or load balancing.
- They only support IPv4. For IPv6, use AAAA records.
How A Records Are Managed
A records are controlled through the name servers associated with your domain. You can manage them in two common ways:
- Registrar name servers: Many domain registrars provide a DNS dashboard where you can edit A records directly.
- External DNS providers: Services like Cloudflare, Amazon Route 53, or DigitalOcean offer advanced DNS features if you delegate your name servers to them.
When switching name servers, remember to reconfigure your A records on the new provider to avoid any downtime.
Summary
An A record is a simple but essential DNS setting that helps route users to your website. Knowing how to look it up, edit it, and troubleshoot it gives you greater control over your domain and website availability.