V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wjpauli
V2EX  ›  Amazon Web Services

Godaddy 的域名主域名部分(example.com)可以指向 AWS 的 Cloudfront 么?

  •  
  •   wjpauli · 325 天前 · 1581 次点击
    这是一个创建于 325 天前的主题,其中的信息可能已经有所发展或是发生改变。

    因为 S3 不支持 https ,就顺着 doc 爬到了 Cloudfront ,发现这个似乎对小 tiny 是免费的,基本上不生气了。然后发现 subdomain.example.comwww.example.com 都可以通过 cname 设置,而 example.com 因为 godaddy 是 A 记录,必须指到 IP ,所以很多地方都说要弄到 AWS 的 Route 52, 这玩意是收费的,为了这么一个事情付费非常不爽,不知道 godaddy 有没有相关的方案?

    7 条回复    2023-05-08 21:11:42 +08:00
    Shiroka
        1
    Shiroka  
       325 天前 via iPhone
    dig xxx.cloudfront.net A +short ,把查询出来的记录值放进去即可

    但是这样做不到和直接 cname 一样的节点全覆盖,要么就换支持 alias 的 DNS ,不用非得是 Route53
    zmaplex
        2
    zmaplex  
       325 天前
    一个 Zone 才 0.5 刀我觉得挺香的。

    -----------------------------------------------------------------
    Route 53
    USD 0.71

    Any
    USD 0.50

    Amazon Route 53 HostedZone
    USD 0.50
    $0.50 per Hosted Zone for the first 25 Hosted Zones
    1 HostedZone USD 0.50

    Global
    USD 0.21

    Amazon Route 53 DNS-Queries
    USD 0.03
    $0.40 per 1,000,000 queries for the first 1 Billion queries
    73,608 Queries USD 0.03

    Amazon Route 53 Geo-Queries
    USD 0.00
    $0.70 per 1,000,000 Geo queries for the first 1 Billion Geo queries
    4,624 Queries USD 0.00

    Amazon Route 53 Health-Check-AWS
    USD 0.00
    First 50 Health Checks of AWS endpoints are free of charge
    0.178 Mo USD 0.00

    Amazon Route 53 Health-Check-Option-AWS
    USD 0.18
    $1.00 per optional feature for Health Checks of AWS endpoints
    0.178 Mo USD 0.18

    Amazon Route 53 Intra-AWS-DNS-Queries
    USD 0.00
    Queries to Alias records are free of charge
    15,590 Queries USD 0.00

    Amazon Route 53 Intra-AWS-Geo-Queries
    USD 0.00
    Queries to Geo Alias records are free of charge
    202,160 Queries USD 0.00

    Amazon Route 53 Intra-AWS-LBR-Queries
    USD 0.00
    Queries to LBR Alias records are free of charge
    139,755 Queries USD 0.00
    wjpauli
        3
    wjpauli  
    OP
       325 天前
    @zmaplex 我没看懂这个价格表。解决我的问题只需要那个 zone 么,因为后面的 DNS-Queries 价格看上去很难控制,我也不知道这个 DNS-Queries 是干啥的。
    zmaplex
        4
    zmaplex  
       325 天前
    一个 Zone 对应一个域名记录管理区域,可以管理 10000 条 DNS 记录。

    DNS-Queries 应该是直接向 Route 53 NameServer 服务器查询的次数,反正大部分都是递归查询,中间 DNS 服务器肯定会有缓存,你想要减少这部分请求,把 DNS TTL 设置高点就行。

    简单点的费用就是:每一百万个查询 0.40 USD (直接向 Route 53 NameServer 服务器发起的 DNS 查询)



    假设你的 www.example.com 记录 TTL 设置成一天,A 省用户全部使用 223.5.5.5 DNS 服务

    A 省 user 1 想要访问 www.example.com

    user 1 client ---query---> 223.5.5.5 ---query---> Route 53 NameServer
    user 1 client <---response--- 223.5.5.5(会缓存此记录一天) <---response--- Route 53 NameServer

    # 理想情况下一天内 A 省后续用户的 DNS 查询如下,不会再向 Route 53 NameServer 查询了。

    user2 client ---query---> 223.5.5.5
    user2 client <---response--- 223.5.5.5
    ....
    userN client ---query---> 223.5.5.5
    userN client <---response--- 223.5.5.5


    如果向 Route 53 NameServer 查询一百万次,实际上的查询次数应该是十倍甚至百倍。
    wjpauli
        5
    wjpauli  
    OP
       325 天前
    也就是说每个 zone $0.5/月,一年 6 刀,查询虽然也不是很贵,但心里总觉得别扭,因为 godaddy 用的好好的没花一分钱,就为了一个 root domain 的访问,大费周折。
    mxalbert1996
        6
    mxalbert1996  
       325 天前 via Android
    root domain 本来就不能设置 CNAME ,比如 Cloudflare 就是通过 CNAME Flattening 变相支持的: https://developers.cloudflare.com/dns/cname-flattening/
    mxalbert1996
        7
    mxalbert1996  
       325 天前 via Android
    所以你可以用 Cloudflare 来管理 DNS 记录,也是免费的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3567 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:47 · PVG 12:47 · LAX 21:47 · JFK 00:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.