Major changes

Edited code to cycle through domains first then change subdomain.  Also
tweaked response handling from DNS query