replace SUB(DOMAIN) with NAME