Added a TTL to the zone records

This commit is contained in:
Alvaro Saurin committed 2015-04-28 11:59:21 +02:00
1 parent 22a229c305
commit 7de2080b9e
7 files changed
+22 -13

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ func TestTCPDNSServer(t *testing.T) {
bs := make([]byte, 4)
for i := 0; i < numAnswers; i++ {
binary.LittleEndian.PutUint32(bs, uint32(i))
addrs = append(addrs, Record{"", net.IPv4(bs[0], bs[1], bs[2], bs[3]), 0, 0})
addrs = append(addrs, Record{"", net.IPv4(bs[0], bs[1], bs[2], bs[3]), 0, 0, 0})
}
// handler for the fallback server: it will just return a very long response