Themewaves
Guide

How to Connect a Domain to WordPress (DNS + Setup)

Learn how to connect domain to WordPress using DNS records or name servers, how to set the primary domain, and how to verify your site.

Editorial Team 9 min read
How to Connect a Domain to WordPress (DNS + Setup)

Overview of connecting domains to WordPress

Many people start with one question: how to connect domain to wordpress so it points to the right site. The answer depends on where your DNS is managed. Most setups use your domain registrar for DNS records or name servers. Your WordPress host handles the web server and SSL certificates.

Also know the difference between connecting and transferring a domain. Connecting keeps your domain registered where it is today. It only changes where traffic should go. Transferring moves registration to a new registrar and can add extra steps and waiting time.

To connect my wordpress blog to my website, you need two things. First, web hosting that can run WordPress. Second, access to your domain registrar dashboard so you can edit DNS records or name servers.

  • Domain registrar access for DNS records or name servers
  • Web hosting with a working WordPress install
  • WordPress access for domain management, if your host requires it
  • SSL certificates support, so HTTPS works after DNS changes
Router and DNS checklist setup for connecting a domain to WordPress
Start with DNS basics

Step-by-step guide to connect domain to WordPress

Start by checking where your WordPress site is hosted. Your host will give either name server values or specific IP or record targets. If you do not see those details, look in your hosting setup emails or your control panel.

Next, connect the domain inside your WordPress hosting account. Many hosts have a domain management area. This helps create the right virtual host and can trigger SSL certificates earlier. It also reduces the chance you set DNS before the host is ready.

  1. Log in to your web hosting control panel.
  2. Open the section like Domains or Domain management.
  3. Select Add domain or Add site.
  4. Enter the domain you want to connect (for example, example.com).
  5. Save and wait while the host provisions the site and requests SSL.

Now you update your domain registrar. If your host provided name servers, replace your registrar nameservers. If your host gave DNS record targets, update A records, AAAA records, and any needed CNAME records.

If your goal is connect google domain to wordpress, use the same steps. You still add the domain on your host. Then you update DNS inside Google Domains settings at your registrar.

Hosting control panel workflow for adding a domain to WordPress
Add the domain first

DNS settings explained: records and name servers

DNS can be configured in two main ways. You can delegate DNS using name servers. Or you can keep DNS at your registrar and edit DNS records directly.

Name server changes are common for managed WordPress hosts. You update the registrar with values like ns1.yourhost.com and ns2.yourhost.com. After that, most DNS lookups go through your host.

Record updates keep control at your registrar. You typically change an A record for the root domain. You may also update AAAA for IPv6 users. For the www subdomain, hosts often request a CNAME record.

Item What it does Typical use
Nameservers Delegates DNS to your host Point entire domain at host
A record Maps domain to IPv4 address Point example.com
AAAA record Maps domain to IPv6 address Point IPv6 clients
CNAME record (often for www) Maps name to a host target Route www to host

Do not mix incompatible instructions. If your host says use these name servers, follow that guidance. If your host says keep your registrar and edit DNS records, do record edits instead.

Finally, plan for DNS propagation. In most setups, changes take about 24 to 48 hours. Some resolvers update sooner, but you should still expect delays.

Network diagram and DNS record concepts for domain connection
Understand DNS records

Troubleshooting connection issues

When your browser still shows the old site, it usually comes down to DNS. Sometimes the domain was added in your host, but DNS was not updated. Other times DNS updated, but your host did not provision the site yet.

A common support ticket is when WordPress can’t find its database. That is not a DNS problem, but it is still a “connection” issue. If you see errors like “can’t connect to database,” check your WordPress wp-config.php settings. Confirm the database name, username, password, host, and port match your hosting panel.

There are also cases where people are trying to connect database in wordpress plugin. In most cases, WordPress plugins do not replace your main database connection. Plugins typically read from WordPress’s database using WordPress functions. If a plugin has its own database settings, verify they point to the same MySQL database you use for WordPress.

  • Wait up to 48 hours for DNS propagation on all resolvers
  • Confirm you added the domain inside your WordPress host
  • Verify name servers or A and CNAME records match your host instructions
  • Check WordPress database settings if you see database errors

If you are working with server files, you may also need FTP. For example, people ask how to connect to wordpress ftp. In practice, you use FTP credentials from your host and connect with an FTP client. If you use FileZilla, follow your host’s FTP host, username, and password details. The general goal is to move files carefully without breaking WordPress.

For connect to wordpress site with filezilla, you still need correct DNS. FTP only uploads files. It does not change where traffic goes. So always solve DNS first, then upload fixes if needed.

Verifying your domain connection

Once you update DNS, verify in two layers. First, confirm the domain resolves to the right target. Second, confirm WordPress serves the correct site and redirects properly.

Start with DNS checks from a computer on a different network. If you have multiple domains, check the specific one you edited. Look for the IP or record values your host provided. If your registrar uses nameservers, you should see delegation to your host.

Then check the website in a browser. Ensure HTTPS works and that you see the expected WordPress pages. If SSL certificates are not ready, the host may still be issuing them. That can cause browser warnings until provisioning finishes.

Verification is also a good moment to check canonical rules. Your host or WordPress may redirect http to https. It may also redirect www to the non-www version. If redirects loop, re-check DNS and the host’s domain settings.

Setting your primary domain

WordPress can respond to more than one host name for the same site. That is why you must set the primary domain. Setting the primary domain helps avoid duplicate content issues and keeps redirects stable.

In WordPress, you can set the primary domain in two common places. Some hosts provide a domain management screen where you choose the primary. In other cases, you update WordPress settings for Site Address and WordPress Address. Your host may also provide tools for forcing the canonical domain.

If you want connect wordpress to bluehost, this usually involves Bluehost domain and WordPress settings. You still add the domain on the host first. Then you update your registrar DNS or nameservers. After that, set the primary domain so WordPress knows which hostname is correct.

For connect wordpress to domain setups, use one canonical hostname for links. Decide if you prefer www or non-www. Then make sure WordPress and your host both use that same choice.

  • Pick the canonical hostname: www or non-www
  • Ensure redirects point to that canonical hostname
  • Confirm WordPress site address matches the chosen hostname
  • Verify after DNS propagation and SSL issuance

Where “connecting” integrations fits (Facebook, email, stores)

People also search for connect facebook to wordpress and how to connect wordpress to mailchimp. These are not DNS connections. They are platform integrations. DNS tells browsers where your site lives. Integrations connect services that interact with your site.

For connect woocommerce to facebook, use the WooCommerce Facebook channel or an integration plugin. It usually uses page settings and permissions. For connect woocommerce to paypal, add your PayPal payment method in WooCommerce settings. These steps depend on the plugin’s fields, not DNS.

For connect wordpress to database, you normally do it through WordPress configuration. For example, WordPress uses database credentials in wp-config.php. That is different from connect database in wordpress plugin, which may only store plugin data or connect to an external system. If you see errors, review the plugin’s docs and confirm your database host and user are correct.

File and upload workflows also differ from DNS. If you try to connect filezilla to wordpress, you are connecting an FTP client to the server files. You still need correct DNS for visitors to reach the site.

If you are using Printify, you may want how to connect printify to woocommerce. That is an e-commerce integration. It typically connects your Printify account to WooCommerce through an app or plugin. Again, DNS is not part of that integration.

Common questions about domain connection

Below are quick answers to the most common questions people ask after they try to connect domain to wordpress.

  • How long does it take to connect domain to wordpress? Usually 24 to 48 hours for full propagation.
  • Will FTP fix a DNS issue? No. FTP changes files on the server, not DNS routing.
  • Can WordPress connect to a database by itself? WordPress connects using the settings in wp-config.php.
  • Do integrations like Facebook or Mailchimp replace DNS? No. They connect platforms to your site, after DNS works.

FAQ

Q: How do I connect domain to WordPress if I do not know my host’s targets?

A: Check your hosting control panel or welcome emails for name servers or DNS record targets. Then add the domain in the host’s domain management area first.

Q: Why is WordPress can’t connect to database after I change something?

A: It is usually a wrong database name or credentials in wp-config.php. Confirm the values match what your host shows in the database panel.

Q: How do I connect facebook to wordpress?

A: Use the Facebook integration for your WordPress use case, often via an official plugin. Ensure the site URL is correct after DNS propagation.

Q: How to connect filezilla to wordpress for uploads?

A: Get your FTP host, username, and password from your web host. Connect with FileZilla, then upload to the correct WordPress folders.

Q: How do I connect my WordPress blog to my website?

A: Point the domain or subdomain you want to your WordPress host using DNS. Then set the primary domain in WordPress to match the hostname you want visitors to use.

Q: How to connect woocommerce to paypal or facebook?

A: Add the PayPal payment method in WooCommerce settings. For Facebook, use the WooCommerce Facebook channel or a trusted integration plugin.

Q: How to connect google domain to wordpress?

A: Add your domain in your WordPress host first. Then update DNS or nameservers in your Google Domains registrar settings.

Step-by-step

  1. 01
    Add the domain in your WordPress hosting panel

    Open your host’s domain management screen and choose Add domain or Add site. Enter your domain and save so the host can provision the site and SSL.

  2. 02
    Update DNS in your domain registrar

    If your host gave name servers, replace the registrar nameservers. If your host gave record targets, update A/AAAA and any CNAME for www.

  3. 03
    Wait for DNS propagation

    Expect changes to take about 24 to 48 hours across resolvers. Check again later if your browser still shows the old site.

  4. 04
    Verify the site and HTTPS

    Confirm the domain resolves correctly and WordPress pages load as expected. Ensure SSL is active and redirects do not loop.

  5. 05
    Set the primary domain in WordPress

    Choose the canonical hostname, like www or non-www. Set the Site Address and WordPress Address so they match the chosen hostname.

Frequently asked questions

How long does it take to connect domain to WordPress?
DNS propagation usually takes about 24 to 48 hours. Some networks update sooner, but you should expect delays.
What is the difference between connecting and transferring a domain?
Connecting keeps your domain registered where it is and only changes where it points. Transferring moves registration to a new registrar.
Why does WordPress say it can’t connect to database?
That usually means wrong database credentials in wp-config.php. Confirm the database name, user, password, and host match your hosting panel.
How do I connect google domain to wordpress?
Add the domain in your WordPress host, then update DNS or nameservers in Google Domains. Follow the host’s exact record or nameserver instructions.
How do I connect facebook to wordpress?
Use a Facebook integration approach for your WordPress setup, typically via a plugin. DNS must work first so your site URL resolves correctly.
How do I connect to WordPress site with FileZilla?
Get FTP host, username, and password from your web host. Then upload to the correct WordPress folders without changing the wrong files.
connect domain to wordpressconnect my wordpress blog to my websiteset primary domain for wordpressdns records and name serverswordpress can t connect to databaseconnect facebook to wordpressconnect filezilla to wordpressconnect wordpress to bluehost