AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 111826
In Process
chepseskaf
chepseskaf
Asked: 2010-02-12 00:40:33 +0800 CST2010-02-12 00:40:33 +0800 CST 2010-02-12 00:40:33 +0800 CST

如何配置 DNS 服务器以在两个不同的域之间共享服务

  • 772

我遇到了一个关于网络集成的问题。

系统

同一级别有 2 个域:domain1.local和domain2.local. 每个域都由 Win Server 2003server1 (192.168.225.42)和server2 (192.168.220.16)(DNS 服务器和域控制器)管理。
每个域都被声明为彼此的存根域。
已添加别名以解析serverone为serverone.domain1.localonserver2和servertwoas servertwo.domain.locon server1。

  1. 在服务器 1 上

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

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

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

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

  2. 在服务器 2 上

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

    C:>ping server2.domain2.local
    ping server2.domain2.local [192.168.220.16] 32 字节数据:
    来自 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
    ping servertwo.domain2.local [192.168.225.42] 32 字节数据:
    来自 192.168.225.42 的回复:字节=32 时间=1ms TTL=128

问题

域无法解析server1and server2。

  1. 在服务器 1 上

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

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

  2. 在服务器 2 上

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

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

问题

实际上 II 可以通过添加主机文件条目映射server1和server2.
但是如何使用 DNS 配置来避免这种黑客攻击?
我试图创建别名但没有成功......

windows-server-2003 domain-name-system configuration
  • 1 1 个回答
  • 536 Views

1 个回答

  • Voted
  1. kubanczyk
    2010-02-12T02:00:27+08:002010-02-12T02:00:27+08:00

    在 server1 上转到Network Connections -> Local Area Connection N -> Properties -> TCP/IP -> Properties -> General -> Advanced -> DNS tab. 在这里确保您已选择Append these DNS suffixes (in order)并放入列表:

    domain1.local.
    domain2.local.
    

    与大多数程序一样,Ping 使用内置的 DNS 解析器。如果你给它起任何名字,例如thatserver,它首先会尝试向 DNS 服务器查询thatserver.. 如果 DNS 回复“未找到”,它会尝试附加后缀。在这种情况下,它将搜索 thatserver.domain1.local.,如果“未找到”,则搜索thatserver.domain2.local.. 如果域不在列表中,它将不会搜索它 - 忽略域是在 127.0.0.1 DNS 服务器上定义的事实。

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

    • 4

相关问题

  • 如何使用脚本远程重启 Windows 服务?

  • IIS 6.0 (Windows Server 2003) 上的 HTTP 压缩

  • 从 2003 年迁移到 2008 年 Microsoft 群集技术

  • 有什么理由使用 Windows Server 2003 而不是 Server 2008?

  • 在 Windows Server 2003 下使用 wscipt 从 .asp 文件运行 .exe

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve