This commit is contained in:
Miek Gieben 2013-06-22 23:52:22 +01:00
parent 8bf7e3c986
commit d3f1ffa6e8
1 changed files with 2 additions and 5 deletions

View File

@ -18,6 +18,8 @@ import (
const SOA string = "@ SOA prisoner.iana.org. hostmaster.root-servers.org. 2002040800 1800 900 0604800 604800"
func NewRR(s string) dns.RR { r, _ := dns.NewRR(s); return r }
var zones = map[string]dns.RR{
"10.in-addr.arpa.": NewRR("$ORIGIN 10.in-addr.arpa.\n" + SOA),
"254.169.in-addr.arpa.": NewRR("$ORIGIN 254.169.in-addr.arpa.\n" + SOA),
@ -40,11 +42,6 @@ var zones = map[string]dns.RR{
"31.172.in-addr.arpa.": NewRR("$ORIGIN 31.172.in-addr.arpa.\n" + SOA),
}
func NewRR(s string) dns.RR {
r, _ := dns.NewRR(s)
return r
}
func main() {
runtime.GOMAXPROCS(runtime.NumCPU() * 4)
for z, rr := range zones {