smegmesh/cmd/dns/main.go

19 lines
222 B
Go
Raw Normal View History

package main
import (
"log"
2024-01-02 01:15:23 +01:00
smegdns "github.com/tim-beatham/smegmesh/pkg/dns"
)
func main() {
server, err := smegdns.NewDns(53)
if err != nil {
log.Fatal(err.Error())
}
defer server.Close()
server.Listen()
}