Yes, except the clearing of the caches you missed the changes in the inc/header.inc.php file. You need to set the actual BX_DOL_URL_ROOT and BX_DIRECTORY_PATH_ROOT - the new DomainB should be set there instead of DomainA too.