func answerSOA(q *dns.Question, e *DNSEntry) dns.RR { answer := new(dns.SOA) answer.Header().Name = q.Name answer.Header().Rrtype = dns.TypeSOA answer.Header().Class = dns.ClassINET answer.Ns = strings.TrimSuffix(e.Meta["ns"], ".") + "." answer.Mbox = strings.TrimSuffix(e.Meta["mbox"], ".") + "." answer.Serial = uint32(time.Now().Unix()) answer.Refresh = uint32(60) // only used for master->slave timing answer.Retry = uint32(60) // only used for master->slave timing answer.Expire = uint32(60) // only used for master->slave timing answer.Minttl = uint32(60) // how long caching resolvers should cache a miss (NXDOMAIN status) return answer }