Namecheap And WordPress Setup Guide
How To Connect A Namecheap Domain To WordPress
A practical guide to pointing a Namecheap domain to a self-hosted WordPress website using hosting nameservers or DNS records—without accidentally disconnecting business email.
Before You Change Anything
A Domain And A WordPress Website Are Separate Until DNS Connects Them
Your Namecheap account controls the domain registration. Your hosting account contains the self-hosted WordPress installation. DNS tells browsers which server should answer when someone visits the domain.
Registering a domain does not automatically connect it to every hosting provider. Likewise, installing WordPress on a server does not automatically make the final domain open that installation. The connection is completed through nameservers or host records.
If you have not registered the domain yet, start with my guide on how to buy a domain name in Pakistan. It explains ownership, renewal cost, privacy and the difference between international and Pakistani domain options.
Information You Need
Collect The Correct Hosting Details Before Opening Namecheap
A five-minute check with the hosting provider can prevent hours of troubleshooting and reduce the risk of disrupting email.
Hosting Connection Values
Obtain either the exact hosting nameservers or the server IP and any required CNAME record. Use the values from the active hosting account—not values copied from an unrelated tutorial.
Domain Added To Hosting
Confirm the domain is assigned as the primary domain, addon domain or site domain in the hosting dashboard. DNS alone cannot create the website folder or hosting assignment.
Current Email Records
Record any active MX, SPF, DKIM and verification entries. A nameserver change moves DNS management and may require those records to be recreated at the new DNS provider.
Two Common Methods
Choose Nameservers Or Individual DNS Records
Both methods can connect a domain successfully. The difference is where the DNS zone is managed after the change.
Method One: Change The Nameservers
The hosting provider becomes responsible for the domain’s DNS zone. This is common when the host supplies two or more nameserver addresses and wants to manage the website and related records.
Method Two: Keep Namecheap DNS
Namecheap remains the DNS provider while individual A, CNAME or other records point web traffic to the hosting service. This can be useful when the existing DNS zone must remain under Namecheap control.
Method One
Connect The Domain Using Hosting Nameservers
Use this route when your WordPress hosting provider has supplied nameserver addresses. The exact addresses vary by host, reseller and account, so copy them from the hosting welcome message or dashboard.
Add The Domain To The Hosting Account
Create or assign the WordPress site under the final domain. Confirm which document root or website installation the domain should open.
Copy The Hosting Nameservers
Record every nameserver exactly as provided. They normally resemble ns1.provider.example and ns2.provider.example, but your real values must come from your host.
Open The Namecheap Domain List
Sign in to Namecheap, open Domain List, and select Manage beside the correct domain.
Select Custom DNS
In the Nameservers section, choose Custom DNS. Enter the supplied nameservers one per field and save using the confirmation checkmark.
Recreate Required Email Records
If email, verification or another service was using the old DNS zone, confirm those records exist in the new hosting DNS manager before relying on the change.
Wait And Test The Final Domain
DNS caches update at different times. Test the root domain, the www version, WordPress administration and email rather than assuming the first successful page load means every location has updated.
Method Two
Connect The Domain With An A Record And WWW Record
Use this route only when the host has instructed you to keep Namecheap BasicDNS, PremiumDNS or FreeDNS and has supplied the destination records.
| Record | Host | Value | Purpose |
|---|---|---|---|
| A Record | @ | Your hosting server IP | Points the root domain to the server. |
| CNAME Record | www | The hostname supplied by your provider, or the root domain when instructed | Connects the www version without creating an unrelated destination. |
Confirm Namecheap Controls The DNS Zone
In Domain List → Manage, check that the domain uses Namecheap BasicDNS, PremiumDNS or FreeDNS. The Host Records editor is not available there when another provider’s nameservers control DNS.
Open Advanced DNS
Select the Advanced DNS tab and locate Host Records. Before editing, record the existing entries and identify any web records that conflict with the new destination.
Add The Confirmed Root Record
Add an A Record with host @ and the exact server IP supplied by the WordPress host. Leave TTL at the provider’s recommended or automatic setting.
Configure The WWW Version
Add the www record exactly as the host documents. Avoid a CNAME at the bare-domain host because Namecheap warns that it can interfere with other records such as email.
Remove Only Confirmed Conflicts
Check for old A, CNAME or redirect entries on the same host. Do not delete MX, TXT, DKIM or verification records simply because they do not look related to the website.
Namecheap Hosting
If The Domain And Shared Hosting Are Both At Namecheap
Namecheap currently provides a Namecheap Web Hosting DNS option for domains connecting to its Shared Hosting service. Its published hosting nameservers are dns1.namecheaphosting.com and dns2.namecheaphosting.com.
Select this option only when the active hosting package is the correct destination. If the domain is not the main domain of the hosting account, it may also need to be assigned as an addon domain or added to the correct site within the hosting control panel.
After DNS Resolves
Finish The WordPress And HTTPS Configuration
A domain pointing to the server is only part of the launch. The WordPress address, certificate, redirects and internal URLs must also agree.
Activate And Verify SSL
Allow the hosting certificate to issue after DNS reaches the server. Test HTTPS directly and confirm there are no certificate warnings or mixed-content errors.
Choose One Canonical Version
Decide whether the preferred address uses www or the root domain, then redirect the other version consistently. Keep WordPress Address and Site Address aligned with the final HTTPS destination.
Replace Temporary URLs Carefully
If WordPress was built on a temporary domain, staging URL or server address, update database URLs with a suitable migration tool or controlled search-and-replace process after taking a backup.
WordPress.com Is Different
Do Not Use Self-Hosted Instructions For WordPress.com Mapping
WordPress.com requires the domain to be added to the relevant WordPress.com site before its DNS is changed. Namecheap’s current WordPress.com guide lists ns1.wordpress.com, ns2.wordpress.com and ns3.wordpress.com, but you should confirm the current values and plan requirements inside the destination WordPress.com account before saving changes.
If the domain already handles email or subdomains, those services must be recreated under the DNS provider that becomes authoritative after the nameserver change.
Troubleshooting
Why The Domain May Still Show The Wrong Website
The Domain Was Never Added To Hosting
DNS reaches the server, but the server does not know which site should answer. Assign the domain to the correct WordPress installation or document root.
Old And New Records Conflict
An earlier A record, CNAME or URL redirect may still target another service. Compare the live zone with the host’s required values before removing anything.
The Wrong DNS Dashboard Was Edited
When custom nameservers are active, Namecheap Advanced DNS no longer controls the live zone. Edit the records at the provider named by the authoritative nameservers.
Only One Domain Version Works
The root domain may resolve while www does not, or the reverse. Check both records and make the non-preferred version redirect to the chosen canonical URL.
DNS Updated But The Browser Is Cached
Test through another connection or a reliable DNS lookup rather than repeatedly changing correct records. Different networks can see the new destination at different times during propagation.
HTTPS Is Not Ready Yet
The domain may resolve before the certificate is issued. Confirm the hosting SSL status and avoid forcing a broken HTTPS redirect before the certificate covers the required hostnames.
Final Verification
Use This Launch Checklist
- The domain is assigned to the correct hosting account.
- The live nameservers match the intended DNS provider.
- The root domain opens the correct WordPress website.
- The www version opens or redirects correctly.
- HTTPS works without a certificate warning.
- WordPress Address and Site Address use the final URL.
- Business email still sends and receives.
- Forms and password-reset email are tested.
- Internal links no longer use staging addresses.
- Only the preferred URL version is canonical.
If the website is still being planned, my guide to WordPress website costs in Pakistan explains how domain, hosting, development and ongoing maintenance affect the complete project budget.
Frequently Asked Questions
Questions About Namecheap And WordPress DNS
Do I Need To Transfer My Domain To My WordPress Host?
No. A domain can remain registered at Namecheap while DNS points it to a different hosting company. Registration transfer and DNS connection are separate actions.
Should I Use Nameservers Or An A Record?
Use the method documented by your hosting provider. Nameservers move DNS management to the host, while an A-record method can keep DNS management at Namecheap. Neither is universally correct for every setup.
How Long Does A Namecheap DNS Change Take?
Namecheap states that nameserver changes can take approximately 24–48 hours to propagate worldwide. Individual record updates may appear sooner, but caching varies by network and location.
Will Changing Nameservers Break My Email?
It can if the new DNS zone does not contain the required MX, SPF, DKIM and related records. Record the current email configuration and recreate it at the new authoritative DNS provider when necessary.
Why Can I Not Edit Host Records In Namecheap?
The Host Records section is available when the domain uses Namecheap BasicDNS, PremiumDNS or FreeDNS. If third-party or hosting nameservers are active, manage DNS at that provider instead.
Can I Connect A Namecheap Domain To WordPress.com?
Yes, but WordPress.com domain mapping is different from connecting a self-hosted WordPress installation. Add the domain to the WordPress.com site first and follow the current values and plan instructions shown in that account.
Do I Need To Change The WordPress Site URL?
If WordPress was installed under a temporary or staging address, the final WordPress Address and Site Address must use the correct HTTPS domain. Back up the site and use a controlled migration process when database URLs also need replacement.
If you still need a domain for the project, you can check current domain availability through Namecheap. Compare the registration price, renewal price and services you genuinely need before purchasing.
Documentation Reviewed
Official Sources Used For This Guide
Connection details and propagation guidance were checked against Namecheap’s current documentation for connecting a domain to hosting, changing domain nameservers, managing host records and WordPress.com mapping. WordPress.org’s glossary explains that DNS maps a domain name to the server IP used to reach a website.
Need A Complete WordPress Setup?
Connect The Domain To A Website Built For Real Business Goals
If you have the domain and hosting but still need the WordPress website, share your business, target market, required pages and current setup for a practical project discussion.