代码之家  ›  专栏  ›  技术社区  ›  Arbazz Hussain

如何正确地指向子域(w。域名.com)至(ns1.w。域名.com)

  •  0
  • Arbazz Hussain  · 技术社区  · 7 年前

    我想指出我的子域( 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
    

    w。example.com网站 )至(

    什么是正确的方法?

    0 回复  |  直到 7 年前
        1
  •  0
  •   Patrick Mevzek James Dean    7 年前

    在…的区域域名.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
    

    $ORIGIN w.example.com.
    @      NS  ns1
    ns1    A   192.0.2.139