
所以我的解决方案是拥有一个简单的DNS转发服务器.我想用dnsmasq.我将公司DNS域称为company.com,将我想要用于本地DNS的域称为mydomain.com
目前我正在运行DNS服务器,我正在使用argonath作为mydomain.com的子域.目前有两台机器连接,一台是名为pc115的Windows机箱,另一台是名为mithrandir的linux工作站.我的“sub dns”转发它无法回答的任何查询到company.com的DNS,这很好用. Linux工作站工作正常(例如,Ping pc115工作).
但是在windows机器上,我在Ping mithrandir时遇到了麻烦.看起来是什么样的,windows会自动在company.com上解决任何问题.因此,我的DNS获取它一无所知的mithrandir.company.com,并将其转发给更大的DNS.这是dnsmasq日志文件的相关部分(172.17.14.19是公司的DNS,10.10.31.15是我的):
May 12 15:07:52 dnsmasq[11970]: query[A] mithrandir.company.com from 10.10.31.15May 12 15:07:52 dnsmasq[11970]: forwarded mithrandir.company.com to 172.17.14.19May 12 15:07:52 dnsmasq[11970]: reply mithrandir.company.com is NXDOMAIN-IPv4May 12 15:07:52 dnsmasq[11970]: query[AAAA] mithrandir.company.com from 10.10.31.15May 12 15:07:52 dnsmasq[11970]: forwarded mithrandir.company.com to 172.17.14.19May 12 15:07:52 dnsmasq[11970]: reply mithrandir.company.com is NXDOMAIN-IPv6May 12 15:07:52 dnsmasq[11970]: query[A] mithrandir.com from 10.10.31.15May 12 15:07:52 dnsmasq[11970]: forwarded mithrandir.com to 172.17.14.19May 12 15:07:52 dnsmasq[11970]: reply mithrandir.com is NXDOMAIN-IPv4May 12 15:07:52 dnsmasq[11970]: query[AAAA] mithrandir.com from 10.10.31.15May 12 15:07:52 dnsmasq[11970]: forwarded mithrandir.com to 172.17.14.19May 12 15:07:52 dnsmasq[11970]: reply mithrandir.com is NXDOMAIN-IPv6
你可以看到windows询问mithrandir.company.com,然后失败并尝试mithrandir.com.它永远不会尝试我的DNS知道如何解决的mithrandir.
除了更改首选DNS服务器之外,我无法真正摆脱windows机器上的设置.
有什么方法可以解决这个问题吗?我真的不希望我的DNS回答company.com的事情,因为我没有域名并且与之无关.
解决方法 您需要做的是配置windows PC的搜索域.您没有详细说明您正在运行的windows版本,但是对于windows 7(从this SuperUser answer无耻地被盗):
Go to Control Panel → Network and Internet → Network and Sharing Center. Click on Change Adapter Settings on the left sIDe. Right-click on your network adapter (normally “Local Area Connection”) and select PropertIEs. Select Internet Protocol version 4 (TCP/IPv4) and click on the PropertIEs button. On the General tab,click on the Advanced… button. In the Append this DNS suffixes List,add the domains you want,like Google.com. 总结 以上是内存溢出为你收集整理的domain-name-system – 解决Windows自动附加DNS后缀的问题全部内容,希望文章能够帮你解决domain-name-system – 解决Windows自动附加DNS后缀的问题所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)