Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rdap-conformance
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
CentralNic
rdap-conformance
Commits
1cdbaf44
Unverified
Commit
1cdbaf44
authored
Aug 13, 2018
by
Gavin Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented --disable-cache
parent
aeb3af2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
README.md
README.md
+2
-0
rdap-conformance
rdap-conformance
+8
-2
No files found.
README.md
View file @
1cdbaf44
...
...
@@ -25,6 +25,8 @@ DNSSEC-related tests, the server SHOULD be a validating resolver.
installed you can use a SOCKS proxy by givin the URL the
`socks://`
scheme.
-
`--debug`
- enable debug mode (i.e. print HTTP and DNS requests and
responsees).
-
`--disable-cache`
- bypass
[
Net::RDAP
](
https://metacpan.org/pod/Net::RDAP
)
's built-in cache and always
query the server directly.
-
`--help`
- show this help.
# COPYRIGHT
...
...
rdap-conformance
View file @
1cdbaf44
...
...
@@ -26,6 +26,7 @@ GetOptions(
'
debug
',
'
nameserver=s
',
'
proxy=s
',
'
disable-cache
',
);
pod2usage
()
if
(
$opt
->
{'
help
'});
...
...
@@ -39,8 +40,8 @@ $opt->{'type'} ||= ('help' eq $opt->{'handle'} ? 'help' : ($url->path_segments
note
(
sprintf
("
testing %s, type '%s'
",
$ARGV
[
0
],
$opt
->
{'
type
'}));
my
$rdap
=
Net::
RDAP
->
new
(
'
use_cache
'
=>
1
,
'
debug
'
=>
$opt
->
{'
debug
'}
'
use_cache
'
=>
(
$opt
->
{'
disable-cache
'}
?
undef
:
1
)
,
'
debug
'
=>
$opt
->
{'
debug
'}
);
$rdap
->
ua
->
proxy
([
qw(http https)
],
$opt
->
{'
proxy
'})
if
(
$opt
->
{'
proxy
'});
...
...
@@ -231,6 +232,8 @@ sub check_gtld_conformance {
# Implementation Guide - RDAP Protocol - 1.9.1: The resource records for the RDAP service MUST be signed with DNSSEC, and the DNSSEC chain of trust from the root trust anchor to the name of the RDAP server MUST be valid.
# Use dnsviz to test dnssec?
my
$rrsig_answer
=
$resolver
->
query
(
$host
,
'
RRSIG
');
my
@sigs
=
scalar
(
grep
{
'
RRSIG
'
eq
$_
->
type
}
$rrsig_answer
->
answer
);
if
(
scalar
(
@sigs
)
>
0
)
{
...
...
@@ -521,6 +524,9 @@ installed you can use a SOCKS proxy by givin the URL the C<socks://> scheme.
=item * C<--debug> - enable debug mode (i.e. print HTTP and DNS requests and
responsees).
=item * C<--disable-cache> - bypass L<Net::RDAP>'s built-in cache and always
query the server directly.
=item * C<--help> - show this help.
=back
...
...
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