Skip to content

Commit 5708096

Browse files
committed
Merge branch 'master' of github.com:joohoi/acme-dns
2 parents 7b59736 + 09dc25d commit 5708096

File tree

726 files changed

+114878
-47292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

726 files changed

+114878
-47292
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: go
22
go:
3-
- 1.9
43
- 1.11
54
env:
65
- "PATH=/home/travis/gopath/bin:$PATH"

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.9.2-alpine AS builder
1+
FROM golang:1.11.4-alpine3.8 AS builder
22
LABEL maintainer="[email protected]"
33

44
RUN apk add --update gcc musl-dev git

Gopkg.lock

+62-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ See the INSTALL section for information on how to do this.
133133

134134
## Installation
135135

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

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

dns.go

-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ func (d *DNSServer) handleRequest(w dns.ResponseWriter, r *dns.Msg) {
8484

8585
if r.Opcode == dns.OpcodeQuery {
8686
d.readQuery(m)
87-
} else if r.Opcode == dns.OpcodeUpdate {
88-
log.Debug("Refusing DNS Dynamic update request")
89-
m.MsgHdr.Rcode = dns.RcodeRefused
9087
}
91-
9288
w.WriteMsg(m)
9389
}
9490

dns_test.go

-16
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,6 @@ func TestEDNS(t *testing.T) {
116116
}
117117
}
118118

119-
func TestOpcodeUpdate(t *testing.T) {
120-
msg := new(dns.Msg)
121-
msg.Id = dns.Id()
122-
msg.Question = make([]dns.Question, 1)
123-
msg.Question[0] = dns.Question{Name: dns.Fqdn("auth.example.org"), Qtype: dns.TypeANY, Qclass: dns.ClassINET}
124-
msg.MsgHdr.Opcode = dns.OpcodeUpdate
125-
in, err := dns.Exchange(msg, "127.0.0.1:15353")
126-
if err != nil || in == nil {
127-
t.Errorf("Encountered an error with UPDATE request")
128-
} else if err == nil {
129-
if in.Rcode != dns.RcodeRefused {
130-
t.Errorf("Expected RCODE Refused from UPDATE request, but got [%s] instead", dns.RcodeToString[in.Rcode])
131-
}
132-
}
133-
}
134-
135119
func TestResolveCNAME(t *testing.T) {
136120
resolv := resolver{server: "127.0.0.1:15353"}
137121
expected := "cn.example.org. 3600 IN CNAME something.example.org."

vendor/github.com/BurntSushi/toml/COPYING

+17-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)