bunch of code that checks DNS then acts on the result