Ok I tested the code and it seems to working perfect, it adds the 'lastline' with the $raddress without buckets or items (cause i dont need that) and overwrites by every trigger the lastline with the dns or hostmask in the hashtable, thats all i need, I don't need to store all the addresses. So I changed:
Code:
#write only the hostmask or ip address:
on *:DNS: { hadd DNS lastline $raddress }

Don't know if that's the correct way but it works, the other code is untouched, Thank you maroon!