大网数据广告活动
服务器运维问答

Cloudflare + AWS route 53 combined to handle records

· 52CE 我爱测

I bought my domain from Godaddy, I use cloudflare for most of my services, so i added the nameserver to my godaddy domain configuration. So lets say I have api.mydomain.com firmware.mydomain.com forum.mydomain.com as CNAME record…

问题原文

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

I bought my domain from Godaddy,

I use cloudflare for most of my services, so i added the nameserver to my godaddy domain configuration.

So lets say I have

api.mydomain.com firmware.mydomain.com forum.mydomain.com

as CNAME records pointed to my AWS Load balancer.

However, I want to use firmware.mydomain.com to be on route 53, specifically for its geolocation routing and latency routing, But I want to have my remaining 2 services to be on cloudflare

Now When I added amazon route53 name servers to my godaddy account. A bunch of my services that was registered on cloudflare started to go down and become unreachable.

I removed those nameserver entries from godaddy, and everything works again.

Now my questions is.

Why did this happen?

If I add nameserver from route53, does it have to be a duplicate of all of the services on cloudflare for it to work?

Thanks

已采纳解答

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

okay, after tinkering around. I finally got it working! thanks for everyone for their help. If anyone else is in the same situation as me. Here is what you have to do.

I bought the domain from Godaddy, so under the nameserver, I used the name server from Cloudflare(there should only be 2 from cloudflare)

Cloudflare manages all of my services, but I only wanted one subdomain(firmware.mywebsite.com) to be directed to amazon route53, and leave the others where they are.

  1. Create a hosted zone in your amazon route 53, of your domain, should be *.yourwebsite.come

in this hosted zone, there should be 2 entries by default, one is the SOA record and the other one is sub-entries of Name servers from amazon.

  1. Add the subdomain you want to be controlled by route 53 on cloudflare under the NS field.

so for example, you wanted firmware.mywebsite.com to be controlled via route 53,

add that in as the first field into the cloudflare NS registry, the second field is the name server from amazon, you need to add ALL 4 of them into cloud flare.

  1. Add the subdomain entry on the route 53 side, so it would be firmware.mywebsite.com, then select the type of record(A, cname, etc),and where you want it redirect to.

  2. set the TTL to short time(2min) to see the propagation.

Everything should be setup!

If you go this route, for every subdomain you wanted to be controlled by route53, there needs to be 4x entry for that subdomain on cloudflare.

Hope this be useful for someone else in situation!

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

资料来源与适用范围

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

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

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