Black Friday Sale is live: save up to 85% on Web & WordPress HostingView Deals
Step-by-Step TutorialDomains & DNSBeginner

How to Create a DNS A Record: Step-by-Step Configuration

Overview

A DNS A record (Address record) is the fundamental building block of web routing. It maps a human-readable domain name (such as example.com or blog.example.com) directly to a 32-bit numerical IPv4 address (such as 192.0.2.1) where your website files or application server are hosted.

Because domain registrars, cloud DNS providers, and hosting control panels use different interfaces, this tutorial focuses on the core concepts and parameters you must provide regardless of your specific provider’s user interface.


Anatomy of a DNS A Record

Every DNS A record requires four essential parameters:

Parameter Field Description Common Example Values
Record Type Specifies the DNS resource type. Must be set to A. A
Host / Name The domain prefix or hostname being routed. @ (for root example.com), www, app, blog
Points to / Value The destination server’s public IPv4 address. 192.0.2.1 (documentation example)
TTL (Time to Live) How long resolvers cache this record in seconds. 300 (5 mins), 3600 (1 hour), or Automatic

[!WARNING] IPv4 vs IPv6 (A vs AAAA):
An A record only accepts standard IPv4 addresses (four sets of numbers separated by periods, like 192.0.2.1). If your hosting provider gave you an IPv6 address (separated by colons, like 2001:db8::1), you must create an AAAA record, not an A record.


Understanding Interface Variations Across DNS Providers

Control panel interfaces vary significantly across platforms:

  • Domain Registrars: Commonly label fields as Host, Record Type, Points To, and TTL.
  • Hosting Control Panels (cPanel / Enhance): May use Zone Editor, labeling fields as Name, Type, and Record.
  • Managed Cloud DNS (e.g. Cloudflare): Uses Name, Type, IPv4 address, Proxy status, and TTL.

Do not search for a rigid sequence of buttons like “Click DNS Zone -> Add A Record.” Instead, look for sections titled DNS Management, DNS Zone Editor, Manage DNS, or Name Server Records in your active DNS provider’s dashboard.


Step-by-Step Configuration Steps

Step 1: Identify Where Your DNS Is Hosted

Before adding an A record, verify which provider manages your domain’s authoritative DNS:

  • If your domain uses custom nameservers pointing to Web Hosting Wale, edit DNS in your Web Hosting Wale control panel.
  • If your domain uses default registrar nameservers (e.g., Namecheap, GoDaddy), edit DNS in your registrar’s portal.
  • If your domain uses external cloud DNS (e.g., Cloudflare), edit DNS inside that provider’s dashboard.

Step 2: Create the Root Domain A Record

To route your main website (e.g. example.com):

  1. Select Add Record or Create Record.
  2. Set the Type dropdown to A.
  3. Set the Name / Host field to @ (or leave it blank if instructed by your provider’s help text).
  4. Set the Value / Destination field to your web server’s public IPv4 address.
  5. Set the TTL to 3600 (1 hour) or Automatic.
  6. Save the record.

Step 3: Create the www Subdomain A Record

Visitors frequently type www.example.com. To ensure they reach your website:

  1. Add a second record with Type set to A.
  2. Set the Name / Host field to www.
  3. Set the Value field to the same server IPv4 address. (Alternatively, you can create a CNAME record for www pointing to @).

How to Verify Your New A Record

Once saved, test the record from your command line:

nslookup example.com

If the command returns your new server IPv4 address, your A record is operational. For deep inspection across multiple global resolvers, review our guide on How to Check DNS Propagation.

Frequently Asked Questions

What is the difference between an A record and an AAAA record?

An A record maps a hostname to a 32-bit IPv4 address (such as 192.0.2.1). An AAAA record maps a hostname to a 128-bit IPv6 address (such as 2001:db8::1). Never enter an IPv6 address into an A record field.

What symbol should I enter for the root domain (example.com)?

Most DNS providers accept the '@' symbol to designate the apex/root domain. Some providers require leaving the host field blank or typing the full root domain name.

Can I have multiple A records for the same domain name?

Yes. Creating multiple A records pointing to different server IP addresses implements round-robin DNS, distributing incoming traffic across multiple servers.

What TTL should I choose when adding an A record?

A standard TTL of 3600 seconds (1 hour) is common for stable websites. If you anticipate changing servers soon, set a lower TTL like 300 seconds (5 minutes).

Need Technical Assistance?

Web Hosting Wale support is available 24/7. Tickets are typically answered within 10-15 minutes.

Open Support TicketView All Support Channels