Ok, that was not clear from what you posted here.
It looks like the psa database, in table "IP_Addresses" has a field "default_domain_id" which would either be NULL (for exclusive IPs), zero (for shared IPs), or the domain id (value greater than zero if a default domain has been set).