fix issue where malformed dns entry parsing error causes OOM