domain:domain_id()

Since: nightly builds only

Returns the domain id.