Skip to content

Commit f5fcec3

Browse files
committed
Drop the search domain from dns
1 parent 835894a commit f5fcec3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dns/resolv.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@ func WriteResolvConf(filename string) error {
146146
filename = DefaultResolveConfFilename
147147
}
148148

149-
content := fmt.Sprintf(`# Generated by agentuity/go-common/dns
149+
content := `# Generated by agentuity/go-common/dns
150150
nameserver 127.0.0.1
151-
search %s
152-
`, DefaultInternalDomain)
151+
`
153152

154153
// Write the file with appropriate permissions (0644)
155154
if err := os.WriteFile(filename, []byte(content), 0644); err != nil {

0 commit comments

Comments
 (0)