如何configurationDNS服务器以共享两个不同域之间的服务

我遇到了一个networking集成的问题。

系统

在同一级别有两个域: domain1.localdomain2.local 。 每个域由Win Server 2003 server1 (192.168.225.42)server2 (192.168.220.16) (DNS服务器和域控制器)pipe理。
每个域相互声明为一个存根域。
已经添加了别名以将serveroneparsing为server2 servertwo ,并将servertwoserver1 servertwo.domain.loc

  1. 在server1上

    C:> ping server1
    用32字节数据Ping server1 [192.168.225.42]:
    来自192.168.42.16的回复:字节= 32时间= 1ms TTL = 128

    C:> ping server1.domain1.local
    用32个字节的数据Ping server1.domain1.local [192.168.225.42]:
    来自192.168.42.16的回复:字节= 32时间= 1ms TTL = 128

    C:> ping servertwo
    用32个字节的数据ping servertwo.domain2.local [192.168.220.16]
    来自192.168.42.16的回复:字节= 32时间= 1ms TTL = 128

    C:> ping servertwo.domain2.local
    用32个字节的数据ping servertwo.domain2.local [192.168.220.16]
    来自192.168.42.16的回复:字节= 32时间= 1ms TTL = 128

  2. 在server2上

    C:> ping server2
    使用32个字节的数据Ping server2 [192.168.220.16]:
    来自192.168.220.16的回复:字节= 32时间= 1ms TTL = 128

    C:> ping server2.domain2.local
    用32个字节的数据Ping server2.domain2.local [192.168.220.16]
    来自192.168.220.16的回复:字节= 32时间= 1ms TTL = 128

    C:> ping serverone
    用32字节的数据ping serverone.domain1.local [192.168.225.42]:
    来自192.168.225.42的回复:字节= 32时间= 1ms TTL = 128

    C:> ping serverone.domain1.local
    屏蔽servertwo.domain2.local [192.168.225.42]与32个字节的数据:
    来自192.168.225.42的回复:字节= 32时间= 1ms TTL = 128

问题

域无法parsingserver1server2

  1. 在server1上

    C:> ping server2
    Ping请求找不到主机dc-server.localdomain.org。 请检查名称,然后重试。

    C:> ping server2.domain2.local
    用32个字节的数据Ping server2.domain2.local [192.168.220.16]:
    来自192.168.220.16的回复:字节= 32时间= 1ms TTL = 128

  2. 在server2上

    C:> ping server1
    Ping请求找不到主机dc-server.localdomain.org。 请检查名称,然后重试。

    C:> ping server1.domain1.local
    用32个字节的数据Ping server1.domain1.local [192.168.225.42]:
    来自192.168.225.42的回复:字节= 32时间= 1ms TTL = 128

实际上,我可以通过添加主机文件映射server1server2来解决这个问题。
但是,我怎样才能使用DNSconfiguration,以避免这种黑客?
我试图创build别名没有成功…

在服务器1上,进入Network Connections -> Local Area Connection N -> Properties -> TCP/IP -> Properties -> General -> Advanced -> DNS tab 。 在这里确保你已经selectAppend these DNS suffixes (in order)并放入列表中:

 domain1.local. domain2.local. 

与大多数程序一样,Ping也使用内置的DNSparsing器。 如果您给它任何名称,例如thatserver服务器,它首先尝试查询该服务器的DNS服务器thatserver. 。 如果DNS答复“未find”,它会尝试追加后缀。 在这种情况下,它会search该thatserver.domain1.local. 如果“找不到”,那么对于thatserver.domain2.local. 。 如果该域名不在列表中,则不会search该域名 – 不考虑该域名是在127.0.0.1 DNS服务器上定义的。

反之亦然server2(同样的事情,但列表中的域的顺序颠倒)。