a dns local cache writen in erlang