I realize this is a learning exercise for you, but in case you're interested, the DNS message types are implemented for you in https://godoc.org/golang.org/x/net/dns/dnsmessage.
On Tue, Jun 25, 2019 at 1:36 PM Eric S. Raymond <e...@thyrsus.com> wrote: > Daniel Lorch <dlo...@gmail.com>: > > I have implemented a simple authoritative DNS Server in Go. You can find > it > > here: https://github.com/dlorch/dnsserver/ > > > > It's a study project to teach myself Go and DNS. > > Haven't looked at it yet, but I must say I think you just nailed one > of the ideal use cases for Go. Provable buffer overrun protection is > especially desirable in this kind of service, and the language > libraries undoubtedly make for a small, clean, exceptionally auditable > implementation. Good on you. > -- > <a href="http://www.catb.org/~esr/">Eric S. Raymond</a> > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/20190625203542.GB118392%40thyrsus.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALRNMm1cM5Jm%3DtDdwB9rcU9dO36cv5fZgEvGbXG%2BcMvnWavQ0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.