Use it when a name resolves to the wrong IPv4 address or not at all.
A record
An A record maps a DNS name to an IPv4 address; resolvers return it for queries of type A.
1. An A record maps a name to an IPv4 address.
2. Multiple A records give round-robin.
3. TTL controls caching.
4. Check authoritative vs cached answers.
5. Keep PTR aligned.
query A → resolver → authoritative → IPv4 address
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Record queried name/type and resolver.
2. Test reachability and UDP/TCP 53.
3. Query the recursive resolver.
4. Trace delegation/authority when needed.
Step 2 Common A record problems Narrow the fault
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A/AAAA map names to IPv4/IPv6; CNAME aliases one name; PTR is reverse lookup
- Recursive and authoritative roles answer different questions
- UDP 53 is common, while TCP 53 is required for some large replies and zone operations
- NXDOMAIN, NODATA, SERVFAIL and timeout indicate different boundaries; TTL controls cache lifetime.
dig <name> A +short— IPv4 addressnslookup -type=A <name>— Windows/any
ReferenceWhat it is1 section · depth on demand
Examples
www.example.com. 3600 IN A 192.0.2.10
dig www.example.com A +short
Resolve-DnsName www.example.com -Type A
Several A records for one name give simple round-robin load distribution. Lower the TTL in advance of planned address changes.
ReferenceWhy it matters1 section · depth on demand
What it is
An A record maps a name to an IPv4 address. A name can have several A records (round-robin), and each record has a TTL that controls how long resolvers cache it. Lower the TTL a day before a planned change so clients pick up the new address quickly.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A records
An A record maps a name to an IPv4 address. RFC 1034 defines the A type as a host address, with a 32-bit IP address as its data in the Internet class, and explains that a resolver's host-name-to-address function is implemented as a query for A records.
Format
www.example.net. 300 IN A 192.0.2.80
| Field | Meaning |
|---|---|
| Owner name | www.example.net. |
| TTL | 300 seconds of caching |
| Class | IN (Internet) |
| Type | A |
| Data | 192.0.2.80 |
Several A records
| Use | Behaviour |
|---|---|
| Several addresses for one name | All returned; clients usually try them in order |
| Simple load distribution | Servers rotate the order (round robin) |
| No health checking | A failed server stays in the answer until removed |
host$ dig +short www.example.net A
192.0.2.80
192.0.2.81
host$ nslookup www.example.net 10.20.0.53
Name: www.example.net
Addresses: 192.0.2.80
192.0.2.81
R1# ping www.example.net
Translating "www.example.net"...domain server (10.20.0.53) [OK]
Related records
| Record | Relation |
|---|---|
| AAAA | IPv6 equivalent |
| PTR | Reverse mapping from address to name (in-addr.arpa) |
| CNAME | Alias pointing to a name that has A records |
| NS glue | A records for name servers inside their own zone |
Operational points
| Point | Reason |
|---|---|
| Lower the TTL before a planned change | Faster switchover |
| Keep forward and reverse records consistent | Logging, mail and some authentication checks rely on it |
| Use private addresses only in internal views | Public resolvers shouldn't return RFC 1918 addresses |
Documented example, not captured output.
Quick reference
An A record maps a host name to an IPv4 address and is the most common DNS record. The TTL on the record controls how long resolvers may cache it, which directly affects how quickly a change takes effect. Lowering the TTL a day before a planned IP change is a simple way to make the cut-over fast.
A records map names to IPv4 addresses.
web01 IN A 10.0.20.15
app 300 IN A 10.0.20.16 ; TTL 300 s
dig +short app.example.com A
nslookup app.example.com 10.0.0.53
Multiple A records for one name give simple round-robin load distribution (no health checking). Lower TTLs before planned changes so caches expire quickly.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → DNS → A record. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc1034.html · confidence 94%