Skip to content

Commit

Permalink
Update vendored dependencies (#147)
Browse files Browse the repository at this point in the history
* Prepare readme for release

* Update vendored packages

* New version of dns dependency handles rejecting UPDATEs under the hood

* Go 1.11 required
  • Loading branch information
joohoi committed Feb 3, 2019
1 parent a88ee29 commit 09dc25d
Show file tree
Hide file tree
Showing 726 changed files with 114,878 additions and 47,292 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: go
go:
- 1.9
- 1.11
env:
- "PATH=/home/travis/gopath/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.9.2-alpine AS builder
FROM golang:1.11.4-alpine3.8 AS builder
LABEL maintainer="[email protected]"

RUN apk add --update gcc musl-dev git
Expand Down
116 changes: 62 additions & 54 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ See the INSTALL section for information on how to do this.

## Installation

1) Install [Go 1.9 or newer](https://golang.org/doc/install).
1) Install [Go 1.11 or newer](https://golang.org/doc/install).

2) Install acme-dns: `go get github.com/joohoi/acme-dns/...`. This will install acme-dns to `~/go/bin/acme-dns`.

Expand Down
4 changes: 0 additions & 4 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ func (d *DNSServer) handleRequest(w dns.ResponseWriter, r *dns.Msg) {

if r.Opcode == dns.OpcodeQuery {
d.readQuery(m)
} else if r.Opcode == dns.OpcodeUpdate {
log.Debug("Refusing DNS Dynamic update request")
m.MsgHdr.Rcode = dns.RcodeRefused
}

w.WriteMsg(m)
}

Expand Down
16 changes: 0 additions & 16 deletions dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,6 @@ func TestEDNS(t *testing.T) {
}
}

func TestOpcodeUpdate(t *testing.T) {
msg := new(dns.Msg)
msg.Id = dns.Id()
msg.Question = make([]dns.Question, 1)
msg.Question[0] = dns.Question{Name: dns.Fqdn("auth.example.org"), Qtype: dns.TypeANY, Qclass: dns.ClassINET}
msg.MsgHdr.Opcode = dns.OpcodeUpdate
in, err := dns.Exchange(msg, "127.0.0.1:15353")
if err != nil || in == nil {
t.Errorf("Encountered an error with UPDATE request")
} else if err == nil {
if in.Rcode != dns.RcodeRefused {
t.Errorf("Expected RCODE Refused from UPDATE request, but got [%s] instead", dns.RcodeToString[in.Rcode])
}
}
}

func TestResolveCNAME(t *testing.T) {
resolv := resolver{server: "127.0.0.1:15353"}
expected := "cn.example.org. 3600 IN CNAME something.example.org."
Expand Down
27 changes: 17 additions & 10 deletions vendor/github.com/BurntSushi/toml/COPYING

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 09dc25d

Please sign in to comment.