Fixing query_client failing with IPv6

* Change query_client to use rsplit to split ip
  to make sure we can handle IPv6 addresses.

* Strip brackets from ip address to make sure dig
  does not fail if the IPv6 is uri formatted.

Change-Id: I2619fab9eb7e35579566cac70e2e718dae474be0
1 file changed