aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-07-07 01:45:15 +0000
committerChristine Dodrill <me@christine.website>2019-07-07 01:46:27 +0000
commit6dde489bee1ab99c8cb4c2c2948e1bc203503104 (patch)
tree162fef53b0045110b89cf3391761add1957aba80 /cmd
parentf74ad0583400f1ff306ae50412e7b6fa545b14e7 (diff)
downloadx-6dde489bee1ab99c8cb4c2c2948e1bc203503104.tar.xz
x-6dde489bee1ab99c8cb4c2c2948e1bc203503104.zip
cmd/dnsd: remove malformed DNS stuffv1.1.8
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dnsd/main.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/cmd/dnsd/main.go b/cmd/dnsd/main.go
index 3e2767d..c84a54b 100644
--- a/cmd/dnsd/main.go
+++ b/cmd/dnsd/main.go
@@ -4,7 +4,6 @@ package main
import (
"bufio"
"flag"
- "fmt"
"log"
"net/http"
"os"
@@ -15,7 +14,6 @@ import (
"github.com/miekg/dns"
"github.com/mmikulicic/stringlist"
"within.website/x/internal"
- "within.website/x/web"
)
var (
@@ -80,11 +78,6 @@ func main() {
rrs := []dns.RR{}
ns := []dns.RR{}
- txt, err := dns.NewRR("user-agent. 10 CH TXT " + fmt.Sprintf("%q", web.GenUserAgent()))
- if err != nil {
- log.Fatal(err)
- }
-
for _, zurl := range *zoneURLs {
resp, err := http.Get(zurl)
if err != nil {
@@ -142,7 +135,6 @@ func main() {
}
} else {
m.Ns = ns
- m.Extra = []dns.RR{txt}
}
for _, a := range answers {
m.Answer = append(m.Answer, a)