add cname and index