Hi, there:
I am modifying nsd such that it only response with fixed results. For
example, it will response with result "10.0.0.1" to any query. (Not
for hacking but for virus test bed.)
After reading the source codes a little bit, I think chaning
rbtree_find_less_equal might work. However, as rbtree is empty from
start, how am I supposed to insert a valid node into it? Could that be
done through nsd.db? I can not find related information about nsd.db,
like its format etc. Where can I find it? Can anyone email me a copy
of their nsd.db?
Thanks,
Gerry
Why not replacing all the answer_query()'s in query_process() with a custom
answer_something() that would only add your static data?
alexis
Tue, Jan 10, 2006 at 02:48:52PM -0800, Steven Z wrote:
Depending on the load you will be experiencing, maybe perl's
Net::DNS::Nameserver would be enough for you. The manual page of that
module actually has an example which does pretty much what you want. Of
course perl is not NSD, but I thought it might possibly do the trick for
you.
In fact Net::DNS::TestNS might just be the tool for you.
http://search.cpan.org/~olaf/Net-DNS-TestNS-1.09/TestNS.pm
Olaf