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

question #5

Open
charlie-goldenowl opened this issue May 26, 2023 · 1 comment
Open

question #5

charlie-goldenowl opened this issue May 26, 2023 · 1 comment

Comments

@charlie-goldenowl
Copy link

can we implement this code on this package?

ip_address_list = []
answers = dns.resolver.resolve(curr_domain, 'A')
            for rdata in answers:
                if not ipaddress.ip_address(str(rdata.address)).is_private:
                    ip_address_list.append(str(rdata.address))
@Focinfi
Copy link
Owner

Focinfi commented Jul 8, 2023

sure, let me clarify the requirement, you want a filter for the result of A list, ignore all the items with private ip, right?

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

No branches or pull requests

2 participants