DNS 通配符条目无法正确解析(Microsoft DNS 服务器)

And*_*ndy 4 domain-name-system wildcard

我正在尝试在 MS DNS 服务器(在 Active Directory 中的 Windows Server 2008 上)中设置一个通配符条目,以便对所有子域的请求解析为相同的 IP 地址。例如:

name1.my.subd.plop.com >>> 192.168.255.4

name2.my.subd.plop.com >>> 192.168.255.4

anyyouwant.my.subd.plop.com >>> 192.168.255.4

我相信这应该很简单,但根本无法让它发挥作用!我尝试了两个选项,A 记录和 CNAME 记录。

plop.com 域中的 A 记录很简单:

*.my.subd A 192.168.255.25

当我使用 nslookup 解析域时,它不会报告错误或 IP 地址。挖掘输出:

C:\Users\myusername>dig nothing.my.subd.plop.com

; <<>> DiG 9.10-P2 <<>> anything.my.subd.plop.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55062
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;anything.my.subd.plop.com.       IN      A

;; AUTHORITY SECTION:
plop.com.           3600    IN      SOA     dns1.plop.com. admin.plop.com. 2012291129     900 600 86400 900

;; Query time: 2 msec
;; SERVER: 192.168.255.10#53(192.168.255.10)
;; WHEN: Wed Jul 23 16:42:31 GMT Summer Time 2014
;; MSG SIZE  rcvd: 113
Run Code Online (Sandbox Code Playgroud)

从客户端命令提示符 PING 它只是失败:

C:\Users\myusername>ping anything.my.subd.plop.com
Ping request could not find host anything.my.subd.plop.com. Please check the name
and try again.
Run Code Online (Sandbox Code Playgroud)

如果我使用带有“*”的 CNAME 条目,nslookup 会报告正确的 IP 地址,但客户端 PING 失败的方式与上述相同。

我希望这是一个有人可以帮助解决的简单错误,如果我可以让它工作,我不介意看起来很傻,这让我发疯!!

更多信息:

我在我的 DNS 服务器上创建了一个新区域并添加了一个类似的通配符条目。这按预期工作。

我已将我的区域从主区域更改为 Active Directory - 集成主区域,这对响应没有影响。

我在“根”级别(即 *.plop.com)添加了一个通配符 A 记录 (*),这也以同样的方式失败。

And*_*ndy 6

哦,解脱!我已经发现为什么它没有按我预期的那样工作:-)

我的 DNS 服务器设置为“使用 WINS 正向查找”(右键单击区域并选择“属性”,选择“WINS”选项卡并取消选择“使用 WINS 正向查找”)。

取消选择后,一切都按我的预期工作....