Support subdomain configuration

Configuring the client by subdomain is required from now.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>