Works as require and cli command. Gets domains from server.