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

Can I point specific prefixed wildcard sub-domain to another set of name servers for the same DNS domain but hosted elsewhere?

· 52CE 我爱测

I have a domain, say, example.com hosted in GoDaddy. I want to create all DNS records starting with dev for this domain in route53 of our Dev AWS account (e.g. dev-abc.example.com , dev-xyz.example.com ). I was able to make them …

问题原文

原帖链接 · Rafiq · CC BY-SA 4.0

I have a domain, say, example.com hosted in GoDaddy. I want to create all DNS records starting with dev for this domain in route53 of our Dev AWS account (e.g. dev-abc.example.com, dev-xyz.example.com).

I was able to make them working the following ways:

On my AWS account:

  1. I created a hosted zone of the same example.com domain in route53.
  2. Zone example.com in route53 now got NS records ns-111.awsdns-11.net. and ns-111.awsdns-11.com..

On GoDaddy:

Under example.com zone, I created the following NS records to point dev-abc.example.com and dev-xyz.example.com to route53 of my AWS account:

ns  dev-abc     ns-111.awsdns-11.net    600 seconds
ns  dev-abc     ns-111.awsdns-11.com    600 seconds
ns  dev-xyz     ns-111.awsdns-11.net    600 seconds
ns  dev-xyz     ns-111.awsdns-11.com    600 seconds

Now, in route53 of my AWS account, I can create these two records (dev-abc.example.com and dev-xyz.example.com) of any valid type, and they work.

What I wanted to do is to create dev prefixed wildcard NS records under example.com zone in GoDaddy like below to point any records starts with dev to route53 of my AWS account.

ns  dev*    ns-111.awsdns-11.net    600 seconds
ns  dev*    ns-111.awsdns-11.com    600 seconds

This way I won't have to create NS records in GoDaddy for each dev prefixed record I want to create in route53 of my AWS account.

Is there a way to do this so I do not have to create the NS records in GoDaddy for each of the records I want to create under example.com zone in route53 of my AWS account?

Please note that, I understand that I can create a sub-domain dev.example.com zone in route53 of my AWS account, and then I can create records like app1.dev.example.com, app2.dev.example.com and so on there, but I do not want to do that.

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 4.0

You cannot delegate dev-*.example.com, but you could delegate *.dev.example.com with dev.example.com NS. I suggest changing the naming pattern to match your requirements.

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

资料来源与适用范围

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

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

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