Reputation: 325
I've been trying to build a DNS resolver in C# since last week, which is a painful process.
Though I've made some progress (say, I can parse the data of a DNS Message correctly), it became more and more likely to me that this may not be the right job for C#.
I have to be prepared in case I had to port to C++. But it is best not do it from scratch again.
So is there any project for Windows that can be used to parse a received DNS message or construct one to send?
Thanks.
Upvotes: 0
Views: 655
Reputation: 18249
Try Heijden DNS: http://www.codeproject.com/KB/IP/DNS_NET_Resolver.aspx
Upvotes: 0
Reputation: 400274
bind
has a whole suite of tools (with source code) for doing DNS queries and much, much more. It's liberally licensed (MIT-like license), so you can use it even in commercial projects.
Upvotes: 1