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

Fixed partition group hostname matching