大网数据广告活动
网站运营与故障问答

Can I use my own domain at wordpress.com retaining my DNS outside WP?

· 52CE 我爱测

I have my own domain ( e.g. contoso.com). I also have a (free tier) wordpress.com account, using contoso.wordpress.com. My DNS is hosted with my registrar, and email is using Google Apps/G Suite. Currently in my DNS settings I ha…

问题原文

原帖链接 · Brie · CC BY-SA 3.0

I have my own domain (e.g. contoso.com). I also have a (free tier) wordpress.com account, using contoso.wordpress.com. My DNS is hosted with my registrar, and email is using Google Apps/G Suite. Currently in my DNS settings I have a URL redirect from (www.)contoso.com to contoso.wordpress.com. Everything works as it should here (web, email), but contoso.wordpress.com shows up in the address field, and I would like contoso.com to appear.

So I signed up for the $13/yr plan at WP to add a mapped domain. It would appear that I need to move my DNS hosting from my registrar to WordPress, and then my domain contoso.com will appear in the browser address field, instead of contoso.wordpress.com.

Is there any way I can keep hosting my DNS with my registrar but still get the redirect and browser address field name change? If I set the primary domain to contoso.com in WP, I get into a redirect loop, and if I change the URL redirects to A records, the same thing happens. (I need a DKIM TXT record, and it appears WP will not allow me to create one.)

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Wordpress.com has a support page about mapping a sub-domain to your site using their $13/year plan: https://en.support.wordpress.com/domains/map-subdomain/

Their instructions say that you need to do two things:

  1. Add CNAME records in your DNS:
    • sub.example.com CNAME to example.wordpress.com
  2. In your WordPress.com site add the domain to your site (example.wordpress.com) using the "Already own a domain" option and make it the "primary" domain.

Since you are using a bare domain name (no subdomain), you can't use a CNAME at the for the APEX record. To use an external DNS system, you will need to find one that supports "ALIAS" records. An ALIAS serves an A record, but it periodically looks up the IP address to serve from the alias that you set. I use Amazon Route53 when I need a DNS host with alias records.

You would want to set the following records:

  • example.com ALIAS to example.wordpress.com
  • www.example.com ALIAS to example.wordpress.com (WordPress would redirect this for you according to their documentation)

You could also try just setting the A record, however if WordPress changes their IP address, your site could stop working without warning. The following are the current IP addresses for lb.wordpress.com which is what your site currently points to:

  • example.com A 192.0.78.12
  • example.com A 192.0.78.13
  • www.example.com A 192.0.78.12
  • www.example.com A 192.0.78.13

To avoid the redirect loop problem, you need to clear your browser cache after making DNS record changes. Your browser must have the redirect from your domain name to your wordpress subdomain cached. Once your site is hosted on the domain name you need to clear your browser cache to be able to access your site. Only people who visited your domain name while it was redirecting will have that problem.

I also noticed that WordPress.com has instructions for getting mail to work: https://en.support.wordpress.com/domains/custom-dns/ That says that they support DKIM txt records. You may be able to use wordpress.com DNS servers and still have the DKIM support you need.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。