Don't assume default domain is being used when unix extensions are enabled

Ticket: #5163
Ticket: #5159
Ticket: #5015