remove dns options

This commit is contained in:
wencaiwulue
2021-08-10 22:40:27 +08:00
parent 15172be134
commit d21432663e

View File

@@ -16,6 +16,6 @@ func DNS(ip string) error {
log.Error(err)
}
filename := filepath.Join("/", "etc", "resolver", "local")
fileContent := "nameserver " + ip + "\nsearch default.svc.cluster.local svc.cluster.local cluster.local\noptions ndots:5"
fileContent := "nameserver " + ip
return ioutil.WriteFile(filename, []byte(fileContent), fs.ModePerm)
}