A Record
Also known as: Address Record, A Record (DNS), IPv4 Address Record
What is an A Record?
An A Record (Address Record) is a core component of the Domain Name System (DNS) that maps a domain name to an IPv4 address. When you type a domain like example.com into a browser, the DNS resolver queries for the A Record to determine the numerical IP address (e.g., 192.0.2.1) where the web server is hosted. Without A Records, the internet would require users to memorize complex numerical addresses for every website they wish to visit.
At HostingDuty, we configure A Records as the foundational step in pointing your domain to our servers. Whether you are setting up a standard website, a subdomain, or a custom email server, the A Record is the bridge between your human-readable name and the machine-readable IP.
How A Records Work Technically
The process begins when a DNS resolver receives a query for a domain name. The resolver checks its cache first; if the record is not cached, it queries the authoritative nameservers for the domain. These nameservers, which we manage for HostingDuty customers, contain the zone file with the DNS records. The resolver looks for the A type record associated with the queried hostname.
Once the authoritative server returns the A Record, the resolver caches the result for a duration specified by the TTL (Time To Live). The TTL is a critical parameter that dictates how long the IP address is considered valid before the resolver must re-query the nameserver. A lower TTL allows for faster propagation of changes, which is vital during migrations or failover scenarios. For example, if you change your A Record to point to a new HostingDuty server, a TTL of 300 seconds (5 minutes) ensures that most users see the new IP within minutes, whereas a TTL of 86400 seconds (24 hours) could delay the update for a full day.
The A Record specifically handles IPv4 addresses, which are 32-bit numbers represented in dotted-decimal notation (e.g., 203.0.113.45). For IPv6 addresses, the equivalent record is the AAAA Record. It is important to distinguish between these two, as modern HostingDuty infrastructure supports both protocols, but the DNS configuration differs.
Concrete Example: Pointing a Domain to HostingDuty
Consider a scenario where you have purchased the domain myshop.com and want to host your online store on a HostingDuty VPS. The VPS has been assigned the IPv4 address 192.0.2.100. To make this accessible, you must create an A Record in your DNS management panel.
1. Hostname: @ (representing the root domain myshop.com)
2. Type: A
3. Value: 192.0.2.100
4. TTL: 3600 (1 hour)
After saving this record, the DNS propagation process begins. During this time, some users might still be directed to the old IP if they have a cached record, while others will see the new HostingDuty server. Once propagation is complete, typing myshop.com resolves to 192.0.2.100, and your web server responds to HTTP requests.
If you also want to host a blog on a subdomain, you would create a second A Record:
1. Hostname: blog
2. Type: A
3. Value: 192.0.2.100 (or a different IP if using a separate server)
4. TTL: 3600
This configuration allows blog.myshop.com to resolve to the same IP address as the main domain. For more complex setups involving load balancing or multiple servers, you can add multiple A Records for the same hostname. The DNS resolver will typically rotate through the IP addresses in a round-robin fashion to distribute traffic.
Managing A Records with HostingDuty
Managing DNS records is a routine task for system administrators. At HostingDuty, we provide a user-friendly interface for editing these records, but understanding the underlying mechanics helps in troubleshooting connectivity issues. If your website is not loading, checking the A Record is often the first step in the diagnostic process.
You can verify your current A Record configuration using command-line tools like dig or nslookup. For instance, running dig myshop.com will return the current A Record value, allowing you to confirm that it points to the expected IP. If the record is missing or incorrect, your domain will not resolve to your HostingDuty server.
For advanced users, we recommend reading our guide on DNS propagation and TTL settings to understand how caching affects your domain's availability during updates. Additionally, if you are migrating from another provider, our DNS migration checklist outlines the specific steps to ensure a smooth transition without downtime.
Related Concepts and Records
While the A Record is essential for IPv4, it is part of a broader ecosystem of DNS records. The CNAME Record (Canonical Name) is often used to alias one domain name to another, effectively pointing www.myshop.com to myshop.com without needing a separate IP address. For IPv6 support, the AAAA Record serves the same function as the A Record but for 128-bit addresses. Understanding the differences between these records is crucial for a robust DNS configuration.
For a deeper dive into the technical specifications of DNS records, you can refer to the RFC 1035 specification, which defines the structure of the DNS protocol. Additionally, our DNS Glossary provides definitions for other critical terms like MX Records, TXT Records, and NS Records.
If you are experiencing issues with DNS resolution, our DNS troubleshooting guide offers step-by-step instructions to identify and resolve common problems. For those interested in the broader context of domain management, the Domain Name System entry provides a comprehensive overview of how the internet's directory service operates.
In summary, the A Record is the backbone of domain resolution for IPv4 networks. By correctly configuring A Records, you ensure that your domain points to the correct HostingDuty server, enabling your website and services to be accessible to users worldwide. Whether you are a beginner setting up your first site or an experienced developer managing a complex infrastructure, mastering A Records is essential for reliable web hosting.