Point DNS to WP Engine

The last step to “go live” with your WP Engine managed WordPress website is to update your DNS. This will allow traffic to come from your domain to your WordPress website hosted on WP Engine. This process starts at your DNS manager, which is most often where you bought the domain.

There are several methods for pointing DNS to WP Engine. The preferred method is flattening DNS records because we find it be the most scalable solution. CNAME, ANAME, Alias and A record methods will all work to point DNS to WP Engine. Domain masking is not supported directly on WP Engine, however this configuration may still be setup from your DNS host.

NOTE: Before changing your DNS records, complete the rest of the Going Live steps!


DNS Record Values

To properly configure DNS records you will first need the IP or CNAME value where your website is hosted.

  1. Log in to the User Portal
  2. Click on the Environment name you wish to find the IP and CNAME for
  3. Select Domains from the left menu
  1. Once on the Domains page, scroll down. Your DNS values can be located within the DNS Details section.
    • A Record is your IP address
      • This is used when pointing DNS with an A record.
    • CNAME Record is your unique WP Engine CNAME, sometimes called the “temporary domain”

The WP Engine CNAME value may vary depending one what type of network you are using: basic networking, advanced networking, or Global Edge Security.

Leave this page open for easy copying when pointing your DNS later on.


Should I point DNS using an IP Address or CNAME record?

As a managed WordPress host, WP Engine may migrate your site to another server, either by request or in an emergency. While migrations are quite rare, it’s important to understand how this possibility may impact your peace of mind down the road and set yourself up for success. Because WP Engine is not a DNS host, if you site is migrated, the task of updating your DNS records will fall on you or your team. There are ways to prevent the need for DNS updates later on, however.

To understand how to point DNS, you’ll need to know the various types of records and why they’re significant to WP Engine websites.

The non-www version of your domain (EX: domain.com) is also called apex or the root domain. This specific version of your domain is where the different configurations we describe below become relevant. The www domain (EX: www.domain.com) and any subdomains (EX: blog.domain.com) can always be pointed using a CNAME, so these records can be configured like you would with any other host.

If the root domain is pointed with an A record, it will use a static IP address (EX: 123.456.78.90). Think of this IP address as the street address of your server. If your website moves to a new server, information can forward for a while, but there will very likely be deliverability issues until you update your IP address again at the DNS host.

If you point the root domain to WP Engine servers in a flexible and non-static way, then instead of an IP you’ll use your WP Engine subdomain (EX: mycoolsite.wpestaging.qa). By doing this you won’t have to make DNS changes should your site migrate to another server with us because we control the address of that subdomain. The following methods are considered flexible in this way: CNAME, ANAME and Alias.

The method you use to point your DNS is ultimately up to you and what your DNS host supports. The four DNS options we’ve detailed here will all successfully direct traffic to WP Engine. While our Support team is always happy to help clarify these options at any time, be aware that our agents cannot log in to your DNS host on your behalf. If you’re unable to configure DNS on your own, reach out to your DNS host with the record type you’d like to use and your WP Engine DNS record values.


Point DNS Using CNAME Flattening

Several services offer CNAME flattening support, meaning your root domain (non-www) can be pointed with a CNAME record. Be aware that CNAME flattening is required for website’s hosted on clustered (AWS) server environments.

CNAME flattened records will look like the following:

PURPOSE TYPE NAME TARGET/HOSTNAME
Root (non-www) CNAME @ or yourdomain.com environment.wpestaging.qa
www CNAME www environment.wpestaging.qa
Subdomain CNAME blog, shop, etc. environment.wpestaging.qa

NOTE: If your website lives on a subdomain, such as shop.mydomain.com, only the subdomain record is required to point a subdomain.

Cloudflare is our recommendation for CNAME flattening, as it makes adding supplementary features through Cloudflare down the road far easier. The steps below will have you first configure your CNAME records in Cloudflare, then update your domain’s nameservers to point to Cloudflare from your domain name registrar.

  1. Sign up for a Cloudflare plan (we’re using the free plan here)
  2. Click Add a Site and enter the domain name
  3. Cloudflare will detect and display any existing records for your domain
  4. Delete any A records shown for your root domain
    • EX: yourdomain.com, it may also be denoted as @ and will be pointed to an IP address
  5. In the Type dropdown, select CNAME
  6. Set the Name to @
  7. In the Target field enter your WP Engine CNAME
  1. Now look for www in the name column:
    • If this record has @, your domain name, or the WP Engine domain in the Content column next to it, you can leave the record as-is.
    • If this record has an IP address in the Content column next to it (EX: 123.456.78.90):
      • Delete the www record
      • Click Add Record
      • Set the Type dropdown to CNAME
      • In the Name field enter www
      • In the Target field enter @
      • Click Save
  2. You will end up with two records that look similar to this example:
  1. Click Continue.
  2. Cloudflare will display two to four nameservers. These must all be copied exactly into your DNS registrar’s dashboard (where you bought the domain).
  3. At your DNS host find the area to edit your nameservers. Often this is in the same area where you manage DNS records. You may need to select an option to set “custom nameservers”.
  4. Once you have changed the nameservers to those shown in the Cloudflare pane, be sure to save.

That’s it! You can track propagation of your DNS changes on a site like this. Be advised, the nameservers and DNS settings may take some time to change over from here. This is largely dependent on your DNS host itself, so if you have concerns regarding propagation, reach out to the DNS provider where you purchased the domain and where you pointed the nameservers to Cloudflare.

NOTE: Updating the nameservers for your domain will affect all records associated with it, including email addresses. Cloudflare does its best to import existing records but be sure to work with your email host be sure you’ve copied over any extra DNS records into Cloudflare.

Cloudflare offers many extra services and options so be sure to configure them properly. Learn more about Cloudflare in our Best Practices guide.


Point DNS Using an ANAME Record

Some services allow your root domain to be configured using an ANAME record. This is very similar to an ALIAS or CNAME record, in the sense that it can point to a dynamic CNAME address. You will add an ANAME record for the root domain and a CNAME record for the www or any subdomains.

Records configured in this way will look like the following:

PURPOSE TYPE NAME TARGET/HOSTNAME
Root (non-www) ANAME Leave blank environment.wpestaging.qa
www ANAME www environment.wpestaging.qa
Subdomain ANAME blog, shop, etc. environment.wpestaging.qa

NOTE: If your website lives on a subdomain, such as blog.domain.com or shop.mystore.com, adjusting the root and WWW records are not necessary. Only the subdomain record is required to point a subdomain.

In this example we’re using DNSMadeEasy.

  1. Log in to DNSMadeEasy
  2. Select your Domain
  3. Click Records
  4. Locate ANAME Records section
  5. Click + to add a new ANAME record
  6. Leave the Name field blank
  7. Enter your WP Engine CNAME in the field labelled Name
  8. Add a period to the end of the CNAME:
    • EX: mysite.wpestaging.qa.
  9. Set a TTL (time in seconds for the changes to take effect)
  10. Click Submit to save
  11. Click + again to add another ANAME record
  12. Enter www in the Name field
  13. Enter your WP Engine CNAME in the field labelled Name
  14. Add a period to the end of the CNAME:
    • EX: mysite.wpestaging.qa.
  15. Set a TTL (time in seconds for the changes to take effect)
  16. Click Submit to save

View full instructions from DNSMadeEasy.


Point DNS Using an Alias Record

Alias records work the same as ANAME and CNAME records in the sense that your root domain can be pointed to a dynamic CNAME. You will configure your root domain using an alias record (which is typically denoted with a blank record name, rather than @), as well as the www or any subdomain records using a CNAME record.

Records configured in this way will look like the following:

PURPOSE TYPE NAME TARGET/HOSTNAME
Root (non-www) Alias Leave blank environment.wpestaging.qa
www CNAME www environment.wpestaging.qa
Subdomain Alias blog, shop, etc. environment.wpestaging.qa

NOTE: If your website lives on a subdomain, such as blog.domain.com or shop.mystore.com, adjusting both the root (non-www) and www records is not necessary. Only the subdomain record is required to point a subdomain.

In this example, we’re using DNSimple.

  1. Log in to DNSimple
  2. Click Domains
  3. Select your domain name
  4. Click DNS
  5. Click Add Record
  6. Select Alias
  7. Leave the Name field blank
  8. Set the Value field to your WP Engine CNAME
  9. Choose your TTL (time in seconds for the change to take effect)
  10. Click Add Record to save
  11. Click Add Record again to add a second record
  12. Select CNAME
  13. Enter www in the Name field
  14. Set the Value field to your WP Engine CNAME
  15. Click Add Record to save

View full DNS configuration instructions from DNSimple.


Point DNS Using an A Record

Pointing your A record to your static WP Engine IP will work just fine, but you will need to update your DNS records if your website is ever migrated to a new server while your website hosted with us.

Records configured in this way will look like the following:

PURPOSE TYPE NAME TARGET/HOSTNAME
Root (non-www) A @ or yourdomain.com WP Engine IP
EX: 123.456.78.90
www CNAME www @
Subdomain CNAME blog, shop, etc. environment.wpestaging.qa

NOTE: If your website lives on a subdomain, such as blog.domain.com or shop.mystore.com, adjusting the root and WWW records are not necessary. Only the subdomain record is required to point a subdomain.

Once you retrieve the IP address value, log in to your DNS host. This is most often the Registrar where you purchased the domain. If you are not sure who your DNS host is, search for your domain on WHOIs.

We’ve created separate guides for the most common DNS hosts:

If your DNS Host is not included above, log in to your DNS host’s dashboard and locate the area to manage DNS records. Your existing records will look similar to this:

  1. Edit the A record with the name @ and change the “Value” field to your WP Engine IP address.
  2. Now check the “www” record:

NEXT STEP: Learn how to add an SSL and secure all pages over HTTPS

Still need help? Contact support!

We offer support 24 hours a day, 7 days a week, 365 days a year. Log in to your account to get expert one-on-one help.

The best in WordPress hosting.

See why more customers prefer WP Engine over the competition.