add PTR RR handling and fix some debugging outputs