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

Default NAMESERVER issues #159

Open
hlein opened this issue Apr 27, 2022 · 1 comment
Open

Default NAMESERVER issues #159

hlein opened this issue Apr 27, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@hlein
Copy link

hlein commented Apr 27, 2022

By default, recon-ng uses the hardcoded default 8.8.8.8 as its nameserver.

There's various reasons one might not want to use that - information leakage, being in a closed environment, having local firewall rules that only allow DNS out to expected nameservers, etc.

The default can be overridden, but only with a specific, static IP.

It would be nice if recon-ng used the system resolver default (typically from /etc/resolv.conf), and/or had a knob that one could turn, like options set NAMESERVER system.

Also, when a lookup does fail, the error is not very informative, just: [!] Invalid nameserver.

If that included the IP that recon-ng tried as a nameserver and couldn't talk to, that would make it more obvious what was wrong.

Opinions? Would recon-ng accept PR(s) that added system-nameserver as an option/default, and/or improved those errors?

@lanmaster53
Copy link
Owner

I think that's a great idea. It would need to be designed with cross-compatibility in mind though. Yes, I accept PRs.

@lanmaster53 lanmaster53 added the enhancement New feature or request label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants