1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Update github.com/miekg/dns and fix tests that broke as a result. (#265)

This commit is contained in:
Tom Limoncelli
2017-11-10 11:48:29 -08:00
committed by GitHub
parent e44dde52e2
commit abcdc21701
25 changed files with 1020 additions and 825 deletions

View File

@@ -144,7 +144,7 @@ func WriteZoneFile(w io.Writer, records []dns.RR, origin string) error {
defaultTtl := mostCommonTtl(records)
z := &zoneGenData{
Origin: origin,
Origin: dnsutil.AddOrigin(origin, "."),
DefaultTtl: defaultTtl,
}
z.Records = nil

View File

@@ -272,7 +272,6 @@ func TestWriteZoneFileOrder(t *testing.T) {
perm := rand.Perm(len(records))
for i, v := range perm {
records[i], records[v] = records[v], records[i]
//fmt.Println(i, v)
}
// Generate
buf := &bytes.Buffer{}