Skip to content

Documentation of "asn_db" object in profile does not match implementation #1053

Description

@matsduf

The asn_db object in the default profile contains a sources object, and since it works, that should match the implementation.

{
    "asn_db" : {
        "style" : "Cymru",
        "sources" : {
            "Cymru" : [ "asnlookup.zonemaster.net", "asn.cymru.com" ],
            "RIPE" : [ "riswhois.ripe.net" ]
        }
    }
}

The documentation, however, says that sources should be an array:

=head2 asn_db.sources
An arrayref of domain names when asn_db.style is set to C<"Cymru"> or whois
servers when asn_db.style is set to C<"RIPE">. Normally only the first item
in the list will be used, the rest are backups in case the earlier ones don't 
work.
Default C<"asnlookup.zonemaster.net">.

(From Zonemaster/Engine/Profile.pm)

Either the documentation or the implementation should be updated.

In that Perl module there is also no documentation for the asn_db object.

Metadata

Metadata

Assignees

Labels

A-DocumentationArea: Documentation only.S-PRforIssueStatus: There is a PR that is meant to resolve the issueT-BugType: Bug in software or error in test case description

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions