fix bug: It can not write DNS for centos