Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
56f14dee
Commit
56f14dee
authored
Mar 01, 2012
by
Jelte Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[1612] log when responding with SERVFAIL
parent
d93639f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
src/bin/auth/auth_messages.mes
src/bin/auth/auth_messages.mes
+13
-0
src/bin/auth/auth_srv.cc
src/bin/auth/auth_srv.cc
+4
-1
No files found.
src/bin/auth/auth_messages.mes
View file @
56f14dee
...
...
@@ -264,3 +264,16 @@ NOTIFY request will not be honored.
% AUTH_INVALID_STATISTICS_DATA invalid specification of statistics data specified
An error was encountered when the authoritiative server specified
statistics data which is invalid for the auth specification file.
% AUTH_RESPONSE_FAILURE exception while building response to query: %1
This is a debug message, generated by the authoritative server when an
attempt to create a response to a received DNS packet has failed. The
reason for the failure is given in the log message. A SERVFAIL response
is sent back. The most likely cause of this is an error in the data
source implementation; it is either creating bad responses or raising
exceptions itself.
% AUTH_RESPONSE_FAILURE_UNKNOWN unknown exception while building response to query
This debug message is similar to AUTH_RESPONSE_FAILURE, but further
details about the error are unknown, because it was signaled by something
which is not an exception. This is definitely a bug.
src/bin/auth/auth_srv.cc
View file @
56f14dee
...
...
@@ -508,9 +508,12 @@ AuthSrv::processMessage(const IOMessage& io_message, MessagePtr message,
buffer
,
tsig_context
);
}
}
}
catch
(
const
isc
::
Exception
&
)
{
}
catch
(
const
std
::
exception
&
ex
)
{
LOG_DEBUG
(
auth_logger
,
DBG_AUTH_DETAIL
,
AUTH_RESPONSE_FAILURE
)
.
arg
(
ex
.
what
());
makeErrorMessage
(
message
,
buffer
,
Rcode
::
SERVFAIL
());
}
catch
(...)
{
LOG_DEBUG
(
auth_logger
,
DBG_AUTH_DETAIL
,
AUTH_RESPONSE_FAILURE_UNKNOWN
);
makeErrorMessage
(
message
,
buffer
,
Rcode
::
SERVFAIL
());
}
impl_
->
resumeServer
(
server
,
message
,
send_answer
);
...
...
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