commit
19a768ab4c
|
@ -56,12 +56,16 @@ file example.com.db
|
|||
|
||||
## Installation
|
||||
|
||||
```
|
||||
```console
|
||||
$ go get github.com/coredns/coredns
|
||||
$ go get github.com/serverwentdown/dns64
|
||||
$ cd $GOPATH/src/github.com/coredns/coredns
|
||||
$ vim plugin.cfg
|
||||
# Add the line dns64:github.com/serverwentdown/dns64 before the hosts middleware
|
||||
|
||||
Add to end of file:
|
||||
proxy:github.com/coredns/proxy
|
||||
dns64:github.com/serverwentdown/dns64
|
||||
|
||||
$ go generate
|
||||
$ go build
|
||||
$ ./coredns -plugins | grep dns64
|
||||
|
|
4
dns64.go
4
dns64.go
|
@ -2,17 +2,17 @@
|
|||
package dns64
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/coredns/coredns/plugin/pkg/response"
|
||||
"github.com/coredns/coredns/plugin/proxy"
|
||||
"github.com/coredns/coredns/request"
|
||||
"github.com/coredns/proxy"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
"context"
|
||||
)
|
||||
|
||||
// DNS64 performs DNS64.
|
||||
|
|
5
setup.go
5
setup.go
|
@ -3,11 +3,12 @@ package dns64
|
|||
import (
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
"github.com/coredns/coredns/core/dnsserver"
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/coredns/coredns/plugin/pkg/parse"
|
||||
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||
"github.com/coredns/coredns/plugin/proxy"
|
||||
"github.com/coredns/coredns/plugin/pkg/parse"
|
||||
"github.com/coredns/proxy"
|
||||
|
||||
"github.com/mholt/caddy"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue