DNS Server

Apr 12, 2010 at 9:21 AM

How do you think, is it easy to create filtering DNS Server, based on this code? 

DNS packets are quite symmetrical, so I only need to provide UDP/TCP server and send bytes to the parser. Then application should re-send the requset to the upper-level server.

Jun 22, 2010 at 8:03 PM

Some of the code here perhaps could be helpful in intercepting and decoding the incoming queries.

You'd need to write a service that receives  queries from hosts you want filtered and it would inspects the query data to see if it the query should be passed on up to the actual DNS server or if it should decline the query and return no records found. You may not even need to modify the query packets you receive. 

This library could be used to decode the queries and inspect them but there would probably be a lot more work to do. Sounds like a fun project though.