Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
开源 ARSoft.Tools.Net 库包含一个 DNS 服务器组件(请参阅 文档)。
您可以直接使用此库,或者仅使用源代码作为构建您自己的 DNS 请求序列化器的起点。
The open source ARSoft.Tools.Net library contains a DNS Server component (see documentation).
You could use this library directly, or just use the source as a starting point for building your own DNS request serializer.
据我所知,我找不到处理 DNS 数据包序列化/反序列化的 C# 库,这意味着您可能必须自己推出。
编辑:我在 代码项目 上遇到了这个网络数据包嗅探器项目,它可能有你需要什么。声称能够解析 TCP/UDP/DNS
我确实发现这个非常有用的网站 TCP/IP,其中有一组非常全面的页面,描述 DNS 数据包类型 包括通用消息格式。
上一个问题 不过。
As far as I can tell, I couldn't find a library for C# which handles DNS packet serialization/deserialization, which means it's likely you'll have to roll your own.
Edit: I came across this network packet sniffer project on Code Project which might have what you need. Claims to be able to to parse TCP/UDP/DNS
I did find this very helpful site for TCP/IP which has a pretty comprehensive set of pages describing DNS packet types including the general message format.
There might be some additional help from this previous SO question though.
如果您查看维基百科,您会发现 DNS 协议的所有 RFC 列表,我发现 RFC 是实现网络协议的最佳方式!
现在 dns 协议有相当多的 rfc,所以我不知道这是否是阅读该协议的最佳方式,但您至少可以获得所需的所有信息。
http://en.wikipedia.org/wiki/Domain_Name_System#Internet_standards
If you look at wikipedia you find a list over all RFC's for the dns protocol, i find rfc's to be the best way to implement a network protocol!
now the dns protocol has rather many rfc's so i dont know if this is the best way to read up on the protocol but you get all the information you need atleast.
http://en.wikipedia.org/wiki/Domain_Name_System#Internet_standards