Modify nsd for special purpose

Alexis Yushin alexis at ww.net
Tue Jan 10 23:05:46 UTC 2006


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:
> 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
> 
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users



More information about the nsd-users mailing list