none
nslookup在父域查询时出现问题 RRS feed

  • 问题

  • I have two domain. One is winstructorlab.com; The other is child domain Beijin.winstructorlab.com (bjdc1cn.beijin.winstructorlab.com)

    in the winstructorlab.com, I use nslookup on itdc1cn.winstructorlab.com

    nslookup bjdc1cn

    error:

    itdc1cn.winstructorlab.com can not find bjdc1cn: Non-existent domain.

    nslookup bjdc1cn.beijin.winstructorlab.com

    server: itdc1cn.winstructorlab.com
    address: 192.168.0.1

    Name: bjdc1cn.beijin.winsturctorlab.com
    address: 192.168.0.6

    Why? bjdc1cn not good? bjdc1cn.beijin.winstructorlab.com is good?


    2009年8月27日 6:38

答案

  • 这个是DNS算法的问题,默认就是这样的。

    -你查询 bjdc1cn的时候, 父域的dns服务器只会检查“winstructorlab.com”下面有没有这个记录, 或者有没有“bjdc1cn”这个zone。没有,就直接报错。

    -你查询 bjdc1cn.beijin.winsturctorlab.com 的时候,父域的dns服务器会先检查有没有“beijin.winstructorlab.com”这个zone, 再看“beijin.winstructorlab.com”下面有没有这个记录。

    如果要在父域查询子域的dns记录,需要在网卡属性里面配置 “dns suffix list”:
    a. "Start"->"Run", type "ncpa.cpl", press Enter.
    b. right-click the NIC, click "Properties".
    c. double-click "Internet Protocol (TCP/IP)".
    d. In new opened window, click "Advanced".
    e.  On "DNS" tab, select "Append these DNS suffixes", click "Add" to add the suffix "beijin.winstructorlab.com", click OK.

    After that, when you query "bjdc1cn" on the server "itdc1cn". "itdc1cn" append the suffix "beijin.winstructorlab.com" and queries "bjdc1cn.beijin.winstructorlab.com"

    2009年8月27日 8:42