A Record: What a DNS Address Record Is, Syntax, Examples, and Rules

An A record is the fundamental DNS resource record mapping a domain directly to a 32-bit IPv4 address like 93.184.216.34. Web browsers and mail servers query A records to locate origin server interfaces. The IPv4 address value represents the definitive terminal destination of every recursive lookup resolution chain.

Browser Resolver Root+TLD Authoritative Website query solid = query · dashed = cached response · every hop caches until TTL
DNS resolution flow: how recursive resolvers query A records to resolve hostnames into IPv4 addresses

What Does "A" Stand For in DNS and What Does an A Record Look Like?

The letter "A" stands for "Address" (IANA Type 1, RFC 1035), establishing the A record as the oldest and most frequently queried resource record on the internet. An A record connects a human-readable hostname (@ for the bare root domain, blog for a subdomain, or * for a catch-all wildcard) to a 32-bit IPv4 address written as four decimal octets separated by periods (0.0.0.0 to 255.255.255.255). The table below defines the 5 core specifications and syntax rules of a DNS A record.

The following production A record example illustrates zone entries for root domains, standard subdomains, mail exchangers, and wildcard fallbacks (when the owner name is *, the record becomes a catch-all that the Wildcard DNS tester detects by probing random subdomains):

; Host / Name           TTL    Class  Type   32-Bit IPv4 Address (Value)
example.com.            3600   IN     A      93.184.216.34     ; Root domain (@)
www.example.com.        3600   IN     A      93.184.216.34     ; www subdomain
mail.example.com.       3600   IN     A      198.51.100.25     ; Mail server target
*.example.com.          3600   IN     A      93.184.216.34     ; Wildcard catch-all
Property Value Description
Type code 1 IANA resource record type for IPv4 addresses
RFC standard RFC 1035 Original DNS standard defining the Address record
Value format Dotted-decimal IPv4 Four octets separated by dots (e.g. 93.184.216.34)
Coexistence AAAA, MX, TXT, NS, SOA Coexists with other types at the same name; conflicts with CNAME
Common TTL 300 to 86400 seconds Shorter for migrations, longer for stable infrastructure

The @ symbol denotes the zone apex (the root domain example.com without any prefix). Publishing a wildcard DNS entry using an asterisk (*) creates a wildcard a record that resolves any unconfigured subdomain to that IP address. Inspect any domain's live address using our A Record Lookup.

What Are the 5 Essential Uses of DNS A Records?

Beyond pointing a website domain to a web host, DNS A records power 5 foundational internet functions across web routing, mail exchanger resolution, nameserver glue records, SPF authentication, and spam blocklists:

  1. Directing Root Domains and Subdomains to Web Servers: A records connect example.com and application subdomains to the public IPv4 address of an origin server or cloud load balancer.
  2. Providing the Final IPv4 Target for MX, CNAME, and SRV Records: Mail exchanger (MX Record), alias (CNAME Record), and SRV records accept only domain names, relying on an underlying A record (mail.example.com -> 198.51.100.25) to deliver packets, traceable end to end in the CNAME record lookup.
  3. Supplying In-Bailiwick Nameserver Glue Records at the Registry: Delegating a domain to a child nameserver (ns1.example.com) requires the registry to publish glue records to prevent circular resolution loops.
  4. Authorizing Outbound Email Senders via the SPF a Mechanism: Declaring the a mechanism in an SPF Record (v=spf1 a -all) authorizes your domain's A record IP address to send email.
  5. Powering DNS-Based Blackhole Lists (DNSBL Spam Checks): Spam filters query reputation lists through DNSBL lookups. Mail servers reverse sending IP octets (25.100.51.198.zen.spamhaus.org) for an A record, returning 127.0.0.2 if listed or NXDOMAIN if clean, tested via our MX and IP Blacklist Checker.

Critical internet protocols depend directly on A records for terminal addressing; deleting an A record disrupts web traffic, email delivery, and external APIs simultaneously.

How Do Multiple A Records on One Domain Work? (Round-Robin Load Balancing)

Publishing two or more A records with the exact same hostname (@ or www) and different IPv4 addresses activates round-robin DNS load distribution across 4 resolution steps. Configuring multiple a records round robin balances traffic across server clusters:

; Multiple A records on the exact same hostname enable round-robin rotation:
example.com.    300    IN    A    198.51.100.10
example.com.    300    IN    A    198.51.100.11
example.com.    300    IN    A    198.51.100.12
  1. Publish multiple A records on the same hostname pointing to separate server IPs with a short DNS TTL Explained cache (60 to 300 seconds).
  2. Return the full set of A records in every answer, rotating the IP order sequentially ([.10, .11, .12] on Query 1, [.11, .12, .10] on Query 2).
  3. Connect the visiting client browser to the first IPv4 address listed at the top of the received answer packet.
  4. Retry the subsequent IP address in the response list automatically if the initial server refuses the TCP connection, delivering basic client-side fault tolerance.

Standard round-robin DNS operates without real-time health checks, sending traffic to dead servers until manually edited. Production setups pair multiple IPs with health-checked routing in DNS Load Balancing.

A Record vs AAAA vs CNAME vs PTR Record (Comparison Table)

Four core DNS records handle hostname and IP mapping (A, AAAA, CNAME, and PTR). Comparing an a record vs cname and pointer types clarifies zone roles. The table below contrasts all 4 record types by input, output, and zone placement.

Record Type IANA Type Code Lookup Direction (Maps X to Y) Example Value Allowed at Root (@)?
A Record Type 1 Hostname to 32-bit IPv4 Address (Forward Lookup) 93.184.216.34 Yes
AAAA Record Type 28 Hostname to 128-bit IPv6 Address (Forward Lookup) 2606:2800:220:1::1946 Yes (Coexists with A)
CNAME Record Type 5 Alias Subdomain to Canonical Target Hostname example.com. No (Requires ALIAS/Flattening)
PTR Record Type 12 IP Address to Hostname (Reverse DNS Lookup) mail.example.com. Published in .arpa zones

Modern networks maintain dual-stack routing by publishing an A record beside an AAAA Record. When a cloud host gives you a dynamic hostname rather than a static IPv4 address for the bare root domain, use a virtual ALIAS record so the authoritative server synthesizes A answers while keeping MX and TXT records intact. A forward A record does not create a reverse PTR Record automatically, because reverse pointers reside in .in-addr.arpa zones managed by the IP owner. Review all resource records in our directory of DNS Record Types.

5 Common A Record Mistakes That Break Websites (And How to Avoid Them)

Five common configuration mistakes cause a published A record to fail validation, expose internal networks, or route visitors to a dead or hijacked server:

  1. Including Port Numbers (:8080), http://, or URL Paths (/app) in the Value Box: DNS panels accept only a bare 32-bit IPv4 address (198.51.100.10). Entering 198.51.100.10:8080 or https://... fails validation because ports and paths belong to web servers, not DNS records.
  2. Publishing Private RFC 1918 IP Addresses on a Public Website: Pointing a public domain to LAN ranges (192.168.1.50, 10.0.0.1) leaves the site unreachable externally. Publishing an RFC 1918 private IP address inside a public A record fails for external visitors because internet routers discard internal IPs; public sites require routable addresses detailed in Public vs Private IP Addresses.
  3. Leaving a Conflicting CNAME or Parking Record on the Same Hostname: Registrars often pre-populate parking A records or CNAME records on root or www labels. Publishing your server IP without deleting parking records causes resolvers to balance traffic between your site and the parking page.
  4. Dangling A Records Pointing to Released Cloud IPs (IP Takeover Risk): Terminating a cloud VM while leaving its A record active creates a dangling record. Cloud providers reassign released IPs to other accounts, allowing attackers to serve malicious content or request SSL certificates on your domain.
  5. Forgetting to Create an A Record for Both @ and www: Configuring an A record solely on @ leaves www.example.com returning NXDOMAIN unless accompanied by a dedicated www A record or CNAME record.

Auditing DNS zones before decommissioning cloud virtual machines prevents dangling A records from exposing domains to takeover attacks, ensuring that DNS mappings retire simultaneously with server hardware.

How to Add, Check, and Verify an A Record (dig, nslookup, and Browser DoH)

Publishing and validating a new A record in your DNS provider dashboard proceeds across 4 configuration and terminal diagnosis steps:

  1. Remove existing conflicting parking records or CNAME entries assigned to the target hostname (@ or www).
  2. Create the new record by setting Type to A, Host/Name to @ (for the apex) or subdomain (www, api), Value to the server's public IPv4 address, and TTL to 3600 seconds.
  3. Query the record from your terminal using dig or nslookup to confirm that authoritative servers and recursive resolvers return the correct IPv4 address:
    # Query A record on Linux / macOS:
    dig example.com A +short
    
    # Query A record with remaining TTL countdown:
    dig example.com A +noall +answer
    
    # Query A record on Windows Command Prompt:
    nslookup -type=a example.com 1.1.1.1
  4. Confirm global DNS synchronization across international test checkpoints with our DNS Propagation Checker.

Running these lookup tools confirms proper IPv4 resolution across local devices and public resolvers. Maintaining accurate A records establishes the foundation for web accessibility, mail exchange reliability, and resilient domain routing across the global internet.

Frequently asked questions

Can a domain have multiple A records?+

Yes. Publishing multiple A records on the exact same hostname with different IPv4 addresses distributes traffic across several servers (Round-Robin DNS). Leaving an old web host's A record active alongside a new server causes half of all visitors to route to the retired host.

Can I include a port number (like 198.51.100.10:8080) in an A record?+

No. An A record accepts only a 32-bit IPv4 address (four numbers from 0 to 255 separated by dots) with no field for port numbers. Deploying a reverse proxy (like NGINX or Cloudflare) on port 80/443 routes domain traffic to a custom backend port like 8080 or 3000 without exposing the port in the browser.

Should I use an A record or a CNAME record for my www subdomain?+

In practice, we recommend using a CNAME record for www (www.example.com -> example.com) and keeping a single A record on the root domain (@). That architecture ensures that when the server IPv4 address changes, editing the single root A record automatically updates the www subdomain.

How long does an A record change take to update?+

In real-world cutovers, editing an existing A record takes as long as the previous record's TTL timer (such as 5 minutes for a 300-second TTL, or 1 hour for 3600 seconds). Creating a brand-new subdomain A record that was never queried before resolves almost instantly across global networks.

Last verified: 2026-12-02