update index and cname