简单的 DNS 服务器 API
是否有一些 API 可以用来构建一个简单的 DNS 服务器,最好是用 Java 构建?我希望我的 DNS 服务器所做的就是使用相同的 IP 地址来响应任何请求。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否有一些 API 可以用来构建一个简单的 DNS 服务器,最好是用 Java 构建?我希望我的 DNS 服务器所做的就是使用相同的 IP 地址来响应任何请求。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
DNS 协议相当简单,您所需要的只是捕获 UDP 请求的能力。捕获请求后,您将使用适当的响应或迭代/递归方法来获取不熟悉的 DNS 记录。 [这需要事先了解 DNS 服务器]
RFC DNS
关于 DNS
JDNSS 可能就是您正在寻找的。它托管在 SF 上并且是开源的。
The DNS protocol is fairly simple, all you need is the ability to catch UDP requests. Once you've captured the request you would then use the appropriate response, or iterative/recursive methods to get unfamilar DNS records. [That requires prior knowledge of DNS servers]
RFC DNS
About DNS
JDNSS may be what you are looking for. It is hosted on SF and it is opensource.
如果您需要的只是 DNS 服务器为每个请求返回相同的 IP 地址,您可以使用带有“固定 IP 地址”插件的 Simple DNS Plus。
请参阅http://www.simpledns.com/kb.aspx?kbid=1261
If all you need is a DNS server returning the same IP address to every request, you can use Simple DNS Plus with the "Fixed IP Address" plug-in.
See http://www.simpledns.com/kb.aspx?kbid=1261
如果您对 C/C++ 库持开放态度,请查看 ldns 和 libunbound;均来自 NlNetLabs。
If you are open to C/C++ libraries, take a look at ldns and libunbound; both from NlNetLabs.