Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'get_recursive' option for legacy whois to RIPE NCC #295

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

wiki-ST47
Copy link

This patch adds an argument get_recursive to lookup_whois(). The
argument default is True, which causes no change to the behavior. If
the user passes get_recursive=False, and the IP is allocated to
RIPE, this causes the -r flag to be included in the query string.
The -r flag asks RIPE WHOIS servers not to perform recursive
queries, such as for related "person" or "role" objects. This helps
users avoid IP blacklisting by RIPE.

The -r flag is only supported by RIPE, so this patch only affects
queries to RIPE servers.

Resolves #292

This patch adds an argument `get_recursive` to `lookup_whois()`. The
argument default is True, which causes no change to the behavior. If
the user passes `get_recursive=False`, and the IP is allocated to
RIPE, this causes the `-r` flag to be included in the query string.
The `-r` flag asks RIPE WHOIS servers not to perform recursive
queries, such as for related "person" or "role" objects. This helps
users avoid IP blacklisting by RIPE.

The `-r` flag is only supported by RIPE, so this patch only affects
queries to RIPE servers.
@coveralls
Copy link

coveralls commented Nov 6, 2020

Coverage Status

Coverage decreased (-0.07%) to 99.576% when pulling 2f672c8 on wiki-ST47:norecursive-dev into 11f7632 on secynic:dev.

@secynic secynic linked an issue Nov 15, 2020 that may be closed by this pull request
@secynic secynic self-requested a review November 15, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to specify the "-r" flag when querying RIPE NCC
3 participants