跳至内容

子域名 NS 记录

在 AWS 中获取子域名 NS 记录的值

  • 记下你的托管区域 ID
HZC=$(aws route53 list-hosted-zones | jq -r '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id' | tee /dev/stderr)
  • 记下你的子域名的名称服务器
aws route53 get-hosted-zone --id $HZC | jq .DelegationSet.NameServers