I think this should go inside the `test()` method, since I generally think code outside of methods is a bad idea.

Also, since the DNS lookup could take a while, it should really be added (at the top of the) async series, so that we can wait until it's done before doing the other tasks.