Add nameserver only package, fix bug

This commit is contained in:
Daniel
2018-10-23 15:23:54 +02:00
parent 7618562458
commit ba1307d67b
2 changed files with 102 additions and 1 deletions

View File

@@ -25,7 +25,8 @@ func init() {
func start() error {
server := &dns.Server{Addr: "127.0.0.1:53", Net: "udp"}
dns.HandleFunc(".", handleRequest)
go run()
go run(server)
return nil
}
func run(server *dns.Server) {