to replace existing data (without a memory leak.) Added two DEFINES ternary_insert() and ternary_replace() to aid in coding.
function.
now it can be used (and is used) in both anonymous and dnscache