Retrieving the ID of a User-Defined Domain

Query the CDR_DF_NAMING view for the domain ID and other attributes.

select * from cdr_df_naming_v where object_type_rc like '%$objtypes$libdomain%';