For a given host, return the domains whose ACL assigned will be used to
determine if a user has the privilege to access the given host or not. When the IP address of the host is given, return the subnets instead.