我想将我的子域名(w.example.com
)指向(ns1.w.example.com
)
NS w.example.com directs to ns1.w.example.com.
A ns1.w.example.com directs to 192.0.2.139
>> dig w.example.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> w.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 20571
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;w.example.com. IN A
;; Query time: 195 msec
;; SERVER: 67.207.67.3#53(67.207.67.3)
;; WHEN: Thu Feb 14 12:10:13 UTC 2019
;; MSG SIZE rcvd: 43
为什么它破坏DNS解析并让我知道将我的子域(w.example.com
)指向(ns1.w.example.com
)的正确方法
这样做的正确方法是什么?
在domain.com区域,您需要委派和胶水记录。这里分别是最后和最后一条记录:
$ORIGIN example.com.
@ NS auth.dns.example
@ NS auth.dns.example
@ NS auth.dns.example
...
w NS ns1.w
ns1.w A 192.0.2.139
胶粘记录是“区外”数据,需要预先指示该名称服务器的地址 - 因为没有该信息,解析器无法猜测它。
在w.example.com的区域你需要
$ORIGIN w.example.com.
@ NS ns1
ns1 A 192.0.2.139