Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
fe076798
Commit
fe076798
authored
Jan 15, 2018
by
Yong Tang
Committed by
GitHub
Jan 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several typos (#1395)
Signed-off-by:
Yong Tang
<
yong.tang.github@outlook.com
>
parent
9d87b953
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
plugin/template/README.md
plugin/template/README.md
+1
-1
plugin/template/template_test.go
plugin/template/template_test.go
+2
-2
No files found.
plugin/template/README.md
View file @
fe076798
...
...
@@ -50,7 +50,7 @@ Each resource record is a full-featured [Go template](https://golang.org/pkg/tex
*
`.Message`
the complete incoming DNS message.
*
`.Question`
the matched question section.
The output of the template must be a
[
RFC 1035
](
https://tools.ietf.org/html/rfc1035
)
style resource record (commonly refered to as a "zone file").
The output of the template must be a
[
RFC 1035
](
https://tools.ietf.org/html/rfc1035
)
style resource record (commonly refer
r
ed to as a "zone file").
**WARNING**
there is a syntactical problem with Go templates and CoreDNS config files. Expressions
like
`{{$var}}`
will be interpreted as a reference to an environment variable by CoreDNS (and
...
...
plugin/template/template_test.go
View file @
fe076798
...
...
@@ -294,7 +294,7 @@ func TestHandler(t *testing.T) {
}
}
// TestMultiSection verfies that a corefile with mu
tl
iple but different template sections works
// TestMultiSection verfies that a corefile with mu
lt
iple but different template sections works
func
TestMultiSection
(
t
*
testing
.
T
)
{
ctx
:=
context
.
TODO
()
...
...
@@ -306,7 +306,7 @@ func TestMultiSection(t *testing.T) {
template IN A {
rcode REFUSED
}
# Fallthrough everyting IN TXT for test.
# Fallthrough everyt
h
ing IN TXT for test.
template IN TXT {
match "$^"
rcode SERVFAIL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment