Giter Site home page Giter Site logo

Comments (8)

L1ghtn1ng avatar L1ghtn1ng commented on August 17, 2024

This is not a dnsrecon issue it's a dnspython issue

from dnsrecon.

FabioPedretti avatar FabioPedretti commented on August 17, 2024

The dnspython issue is known to be working in some release? Can a proper version be suggested? If not dnsrecon should resolv the name and call dnspython with the IP.

from dnsrecon.

hlein avatar hlein commented on August 17, 2024

It looks to me like this is intended to be supported?

Starting around https://github.com/darkoperator/dnsrecon/blame/master/dnsrecon/cli.py#L1557, we iterate over the nameserver argument(s). Line 1565 seems to be resolving provided nameserver hostnames to IPs:

            # Resolve in the case if FQDN
            answer = socket_resolv(entry)

...The problem is the quoted error is thrown when entry is used first thing in the loop, line 1558, before it has been resolved. It makes sense that you can't tell your DNS library to use a hostname to send requests to, since... it needs to have an IP to send to. Should the resolve check simply be moved earlier in the for loop? Or if there's no intention to support --name_servers arguments of hostnames, dnsrecon could reject them with a cleaner error message, and probably s/Domain server to use/Domain server IP to use/ in the usage, as well.

from dnsrecon.

L1ghtn1ng avatar L1ghtn1ng commented on August 17, 2024

from dnsrecon.

darkoperator avatar darkoperator commented on August 17, 2024

from dnsrecon.

L1ghtn1ng avatar L1ghtn1ng commented on August 17, 2024

from dnsrecon.

hlein avatar hlein commented on August 17, 2024

More than happy to except a PR if you would like to contribute a fix?

Sure, I'll try to get to it and/or assign an intern to it :)

My inclination would be to go ahead and support expanding a name to IP(s), like the code currently seems to try to do. But if the preference is to only support IPs in light of @darkoperator's comment, and to make relevant usage/error updates, please let me know.

from dnsrecon.

L1ghtn1ng avatar L1ghtn1ng commented on August 17, 2024

from dnsrecon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.