forked from extern/smegmesh
d1a74a7b95
Incorporated a DNS server. A DNS server can be run to resolve host names.
19 lines
220 B
Go
19 lines
220 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
smegdns "github.com/tim-beatham/wgmesh/pkg/dns"
|
|
)
|
|
|
|
func main() {
|
|
server, err := smegdns.NewDns(53)
|
|
|
|
if err != nil {
|
|
log.Fatal(err.Error())
|
|
}
|
|
|
|
defer server.Close()
|
|
server.Listen()
|
|
}
|