Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Acme Dns
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
t-personal
Acme Dns
Commits
92f8cc28
Unverified
Commit
92f8cc28
authored
Mar 13, 2018
by
Joona Hoikkala
Committed by
GitHub
Mar 13, 2018
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into cpu-differentiate-errors
parents
f463d07d
978ac5d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dns.go
+5
-1
5 additions, 1 deletion
dns.go
with
5 additions
and
1 deletion
dns.go
+
5
−
1
View file @
92f8cc28
...
...
@@ -51,9 +51,13 @@ func answer(q dns.Question) ([]dns.RR, int, error) {
var
domain
=
strings
.
ToLower
(
q
.
Name
)
var
rtype
=
q
.
Qtype
r
,
ok
:=
RR
.
Records
[
rtype
][
domain
]
if
!
ok
{
r
,
ok
=
RR
.
Records
[
dns
.
TypeCNAME
][
domain
]
if
!
ok
{
rcode
=
dns
.
RcodeNameError
}
}
log
.
WithFields
(
log
.
Fields
{
"qtype"
:
dns
.
TypeToString
[
rtype
],
"domain"
:
domain
,
"rcode"
:
dns
.
RcodeToString
[
rcode
]})
.
Debug
(
"Answering question for domain"
)
return
r
,
rcode
,
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment