in reply to DNS filter

Have you looked at the modules for handling DNS packets on the CPAN? Especially Net::DNS::Packet and POE::Component::Server::DNS look promising.

Replies are listed 'Best First'.
Re^2: DNS filter
by Anonymous Monk on Feb 10, 2010 at 00:07 UTC

    Both appears to be complicated ... I have tried both of them but could not get what I need.

    Any idea why the dns request appears scrambled ?

    For example querying msn.com giving this output.

    �smsncom

    Is there any guide for implementing this, I looked at the source of the modules you mentioned and both are full of pack/unpack ...etc I do not want to copy and paste code all over ... I want to understand how it works.

      DNS is BINARY not ASCI, This site explains it http://www.firewall.cx/dns-query-format.php. But I think a better source is the DNS and BIND book.

      Your set up sounds like you just need a BIND server with a forwarder address, you can add your own zones with 'A' records as you see fit.