fix bug when use hosts to set name server