domains function

Pull domains from a data list