Hi,
I am trying to make DNS filter where I can send 'A' entry for some of the requested domains and redirect the request to a real DNS server if no domain matched.
I am stucked with the fact that tools like 'nslookup' send un-understandable characters to my perl script so I am unable to match anything and stopped working on the code until I get some help.
Here is my code:
use IO::Socket; my $server = IO::Socket::INET->new( Proto => 'udp', LocalPort => 53, ); die "Couldn't setup server: $@" unless $server; while ( $server->recv(my $data , 1024, my $flag ) ) { print "Got: $data\n"; }
In reply to DNS filter by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |