script to process dns responses