adds cname and updates config