Namecheap DNS Settings Tutorial for Beginners
Configuring your domain's DNS records correctly is the single most important step in getting your website and email online. This Namecheap DNS settings tutorial walks you through every essential record type, points you to the DNS Lookup tool on XiaTools to instantly verify your changes and ensure global propagation, and helps you avoid common configuration traps.
Understanding Namecheap DNS Basics
When you buy a domain on Namecheap, your domain uses Namecheap BasicDNS or Namecheap Web Hosting DNS by default. These are Namecheap's proprietary name servers that host your zone file. To point your domain to your web host, email provider, or CDN, you need to manage your Advanced DNS records within your Namecheap account.
To access your DNS settings on Namecheap:
- Log into your Namecheap account and navigate to your Dashboard.
- Locate your domain in the domain list and click the Manage button next to it.
- Click on the Advanced DNS tab at the top of the page.
Here, you will see a table containing existing records like CNAME aliases and URL redirect records. You can add, edit, or delete records from this interface. Always remember to click the green checkmark or the Save All Changes button at the bottom of the page whenever you modify a record.
Essential DNS Record Types and Syntax
Managing DNS requires understanding the specific record types that control how traffic reaches your domain. Below is a breakdown of the most common records you will configure in Namecheap.
A Records (Address Records)
An A record points your domain or a subdomain to an IPv4 address. For example, pointing example.com to 192.0.2.1.
- Type: A Record
- Host:
@(represents the root domain) or a subdomain likewwworblog - Value: The IPv4 address provided by your host
- TTL: Automatic or 30 minutes
AAAA Records
An AAAA record points your domain or subdomain to an IPv6 address.
- Type: AAAA Record
- Host:
@or a specific subdomain - Value: The IPv6 address (e.g.,
2001:db8::1) - TTL: Automatic
CNAME Records (Canonical Name)
A CNAME record creates an alias pointing one domain name to another domain name. You cannot use a CNAME record on the root domain (example.com) if you also have MX or TXT records there, which is why Namecheap offers a special ALIAS Record type for root domains.
- Type: CNAME Record
- Host:
wwworshop - Value:
target.hostingservice.com.(always include the trailing dot for fully qualified domain names) - TTL: Automatic
MX Records (Mail Exchange)
MX records direct your incoming email to your email service provider (such as Google Workspace or Microsoft 365).
- Type: MX Record
- Host:
@ - Value:
mail.example.com. - Priority: A number (e.g., 10, 20) determining the mail server preference
TXT Records
TXT records hold text data, commonly used for domain ownership verification and security protocols like SPF, DKIM, and DMARC.
- Type: TXT Record
- Host:
@ - Value:
v=spf1 include:_spf.google.com ~all - TTL: Automatic
Step-by-Step: Adding Your First Custom DNS Record
Let's walk through the exact process of adding an A record to point your Namecheap domain to a custom server IP address.
- Log into Namecheap, go to your Domain List, and click Manage next to your domain.
- Click the Advanced DNS tab.
- Scroll down to the DNS Zone section and click the Add New Record button.
- From the Type dropdown menu, select A Record.
- In the Host field, enter
@to apply the record to your root domain (or enter a subdomain name likeapp). - In the Value field, enter your server's IPv4 address, such as
192.0.2.25. Leave the TTL set to Automatic. - Click the checkmark icon on the right side of the row to save the individual record, or click Save All Changes at the bottom.
To verify that your record is returning the correct IP address locally, you can use the command line tools on your computer:
nslookup example.com
Or use dig for more detailed technical output:
dig example.com A +short
| Record Type | Host Field | Typical Value | Purpose |
|---|---|---|---|
| A | @ or subdomain |
IPv4 Address (192.0.2.1) |
Points domain to a server IP |
| CNAME | Subdomain (www) |
Target domain name | Aliases one name to another |
| TXT | @ |
Text string | Security policies and verification |
| MX | @ |
Mail server + priority | Routes incoming email |
Pointing Namecheap Domain to External Nameservers
If you prefer to manage your DNS records entirely outside of Namecheap (for example, on Cloudflare, AWS Route 53, or DigitalOcean), you must change your domain's nameservers.
- Navigate to your domain's Manage page in Namecheap.
- In the Domain tab (default landing page), find the Nameservers section.
- Change the dropdown selection from Namecheap BasicDNS to Custom DNS.
- Enter the nameservers provided by your external host (e.g.,
ns1.examplehost.comandns2.examplehost.com). - Click the green checkmark to save.
Note: When you switch to Custom DNS, all records managed inside Namecheap's Advanced DNS tab are ignored. You must recreate all of your A, CNAME, and MX records on your new DNS provider's platform. Propagation for nameserver changes can take anywhere from 2 to 24 hours globally.
Common Mistakes and How to Fix Them
Even experienced webmasters occasionally run into DNS configuration pitfalls. Here are the most frequent issues and how to resolve them:
- Conflicting Root CNAME Records: A standard CNAME record cannot coexist on the root domain (
example.com) with other record types. If you try to add a CNAME at the root, Namecheap will throw an error or break your mail delivery. Fix: Use Namecheap's built-in ALIAS Record for the root domain if you need to pointexample.comto an external hostname. - Forgetting the Trailing Dot: When pointing a CNAME or MX record to an external domain name, omitting the trailing dot can sometimes cause the DNS parser to append your own domain name to the end of the target. Fix: Always ensure external FQDN targets end with a dot, like
ghs.googlehosted.com.. - Incorrect MX Record Priority: Email servers rely on priority numbers to decide which mail server to try first. Fix: Ensure your primary mail provider's priority matches their exact documentation (often
1or10), with backup servers assigned higher numbers. - Assuming Instant Propagation: Making a change in Namecheap does not mean the entire internet sees it immediately. Fix: Respect the TTL (Time to Live) values. Use a reliable external lookup tool to verify propagation across multiple global public resolvers before assuming your configuration is broken.
Namecheap DNS Configuration Checklist
- Logged into Namecheap and opened the Advanced DNS tab.
- Verified whether to use Namecheap BasicDNS or switch to Custom DNS.
- Added required A records for the root domain and
wwwsubdomain. - Configured MX and TXT records for secure, reliable email delivery.
- Checked for conflicting root records.
- Used verification utilities to confirm records resolve correctly worldwide.