Added domain name matching utility methods.
Fixed partition group matching when domain names are used.
Merge pull request #2471 from mdogan/fix/3.3/zendesk-363

Fixed partition group hostname matching