简单的 DNS 服务器 API

发布于 2024-08-11 05:19:22 字数 87 浏览 2 评论 0 原文

是否有一些 API 可以用来构建一个简单的 DNS 服务器,最好是用 Java 构建?我希望我的 DNS 服务器所做的就是使用相同的 IP 地址来响应任何请求。

Is there some API that I can use to build a simple DNS server, preferably in Java? All I want my DNS server to do is answer with the same IP address for any request.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

葬花如无物 2024-08-18 05:19:22

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.

毅然前行 2024-08-18 05:19:22

如果您需要的只是 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

谈下烟灰 2024-08-18 05:19:22

如果您对 C/C++ 库持开放态度,请查看 ldnslibunbound;均来自 NlNetLabs。

If you are open to C/C++ libraries, take a look at ldns and libunbound; both from NlNetLabs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文