We should get this section out of the main function. You can crate a newReq() func, do the DNS resolving and keep setting the req properties that are configured with cmdline flags in the main func.