Skip to content

High concurrency causes dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf + progress bar stuck at 100% #167

@matheusrrocha

Description

@matheusrrocha

When running knockpy against a domain, the scan appears to complete (progress bar reaches 100%), but the process never exits and nothing further happens.

If I interrupt the process with Ctrl + C, I consistently see multiple exceptions related to DNS resolution, ending with:

dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf OSError: [Errno 24] Too many open files: '/etc/resolv.conf'

It seems the tool is exhausting file descriptors, likely due to repeated instantiation of dns.resolver.Resolver() under high concurrency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions