我兩個都有AWS 路線53和一個專用伺服器dns配置
我嘗試過創造NS
記錄
- ns111.awsdns-xz.co.
- ns112.awsdns-xz.co.
- ns113.awsdns-xz.co.
基本上我想要實現的是在兩台伺服器上擁有多個不相關的 DNS 記錄,由 2 個不同的人管理。
NS記錄網域註冊商
ns1.xxx.ovh.com
網域解析記錄
dedicatedServer.ovh.com
a : example.com
sub.example.com
mx : mx.example.com
ns : ns111.awsdns-xz.co.
: ns112.awsdns-xz.co.
: ns113.awsdns-xz.co.
on AWS router
site2.example.com -> loadbalancer
site3.example.com -> elasticbeanstalk
那麼這個配置可以嗎?
2小時了還不行,要等繁殖期嗎?
答案1
我認為,這不會起作用,因為公眾不會接觸到它(甚至不會搜尋它)。
好的,假設您有網域example.com已註冊並處於註冊商級別,並且具有指向的 NS 記錄ns1.xxx.ovh.com- 此資訊傳播到 .com 網域的 DNS 區域,以便為 site.com 網域建立委派。
在伺服器 ns1.xxx.ovh.com 上將有一個正在工作的 DNS 伺服器,並配置了區域 example.com。一旦有人查詢某些記錄,它就會從“root”迭代到 ns1.xxx.ovh.com,這是該網域的權威伺服器,並且該伺服器知道或不知道...
區域的 NS 記錄直接在上層中比在網域本身的層級中更重要,並且它不會導致「下一個伺服器」查詢...
如果您希望在 AWS 中管理 site2 和 site3 子網域的記錄,則需要直接委派 ns1.xxx.ovh.com 上的子網域。
site2.example.com. 3600 IN NS ns111.awsdns-xz.co.
site2.example.com. 3600 IN NS ns112.awsdns-xz.co.
site2.example.com. 3600 IN NS ns113.awsdns-xz.co.
site3.example.com. 3600 IN NS ns111.awsdns-xz.co.
site3.example.com. 3600 IN NS ns112.awsdns-xz.co.
site3.example.com. 3600 IN NS ns113.awsdns-xz.co.
然後,一旦查詢到達 ns1.xxx.ovh.com,它會將查詢委託給 AWS DNS 系統,以便這些記錄將在 ns1.xxx.ovh.com 之外進行處理。該委託涵蓋了提到的域及其子域,因此site2.example.com NS將為代表團涵蓋 site2.site.com 和 www.site2.example.com。
結果如下(對於 TTL 3600):
@ 3600 IN A <IP>
@ 3600 IN MX 10 mx.example.com.
@ 3600 IN NS ns1.xxx.ovh.com.
sub 3600 IN A <IP>
mx 3600 IN A <IP>
site2.example.com. 3600 IN NS ns111.awsdns-xz.co.
site2.example.com. 3600 IN NS ns112.awsdns-xz.co.
site2.example.com. 3600 IN NS ns113.awsdns-xz.co.
site3.example.com. 3600 IN NS ns111.awsdns-xz.co.
site3.example.com. 3600 IN NS ns112.awsdns-xz.co.
site3.example.com. 3600 IN NS ns113.awsdns-xz.co.
- 編輯 -
為 @ 新增了 NS 記錄,並為 MX 記錄新增了優先級,以使其格式有效且一致。