Add domain support to connection pool