I think it's cool to have the DNS option.  Were you intending the WordPress box to the DNS resolution or the attack platform?  Does the wordpress API support DNS?  You may consider getting it all refactored and working w/o the DNS, then adding it in after you've gotten it working again.  If you add me to your repo, I'd be happy to help, even just as a reviewer, but it would be easier than working through the pull request I think