Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
rdnsd
Commits
beae6dd4
Unverified
Commit
beae6dd4
authored
Aug 05, 2019
by
Gavin Brown
Browse files
option to expect a particular RCODE
parent
ee802bf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
rdnsd
View file @
beae6dd4
...
...
@@ -275,8 +275,8 @@ sub time_query {
debug
(
$@
);
}
if
(
!
$result
)
{
return
undef
;
if
(
!
$result
||
(
defined
(
$CONF
->
{'
ResponseCode
'})
&&
$result
->
header
->
rcode
ne
$CONF
->
{'
ResponseCode
'})
)
{
return
undef
;
}
else
{
return
$dt
;
...
...
@@ -324,6 +324,7 @@ sub load_config {
$CONF
->
{'
Timeout
'}
=
$ini
->
param
('
Timeout
')
||
1
;
$CONF
->
{'
Recurse
'}
=
$ini
->
param
('
Recurse
')
eq
'
true
'
||
undef
;
$CONF
->
{'
Question
'}
=
$ini
->
param
('
Question
')
||
'
. A IN
';
$CONF
->
{'
ResponseCode
'}
=
$ini
->
param
('
ResponseCode
')
||
undef
;
$CONF
->
{'
Servers
'}
=
$ini
->
param
('
Servers
')
||
undef
;
$CONF
->
{'
Domains
'}
=
$ini
->
param
('
Domains
')
||
undef
;
$CONF
->
{'
StatsFile
'}
=
$ini
->
param
('
StatsFile
')
||
undef
;
...
...
@@ -911,6 +912,14 @@ Default: C<example.com. IN A>
Specify the DNS question. The format is "QNAME QCLASS QTYPE".
=head2 C<ResponseCode RCODE>
Default: none
Specify the expected RCODE. If the RCODE does not match the server is
assumed to be down. If no value is specified, any RCODE will be
accepted.
=head2 C<Servers SERVERS>
Default: none
...
...
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