aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 09fc095..051e6cd 100644
--- a/main.go
+++ b/main.go
@@ -104,6 +104,7 @@ func fetchDomainsAndWrite(url string, w *bufio.Writer, seen map[string]struct{})
}
defer resp.Body.Close()
+ fmt.Fprint(w, "server:\n")
var count int
scanner := bufio.NewScanner(resp.Body)
for scanner.Scan() {
@@ -137,7 +138,7 @@ func fetchDomainsAndWrite(url string, w *bufio.Writer, seen map[string]struct{})
seen[domain] = struct{}{}
count++
- if _, err := fmt.Fprintf(w, "local-zone: %q refuse\n", domain); err != nil {
+ if _, err := fmt.Fprintf(w, " local-zone: %q refuse\n", domain); err != nil {
return fmt.Errorf("failed to write domain: %w", err)
}
}