A helper module to get domain info