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

DNS filtering/pass-through #58

Open
strictlymike opened this issue Nov 6, 2017 · 2 comments
Open

DNS filtering/pass-through #58

strictlymike opened this issue Nov 6, 2017 · 2 comments

Comments

@strictlymike
Copy link
Collaborator

strictlymike commented Nov 6, 2017

Users would like to be able to allow the DNS listener to pass selected requests through to an actual DNS server.

Regular expressions stand out as a way for users to specify what requests to pass through without having to revisit this if requirements become more complex.

It would be worthwhile to allow users to also specify whether the default behavior will be to pass through vs. simulate.

Thanks to @dzzie and @garsim for pointing out the utility of such a feature. Please feel free to add a follow-on comment if you would like to elaborate on the specification above.

@dzzie
Copy link

dzzie commented Nov 6, 2017

i ended up with a config file that has 4 sections for white/black listed processes and domains using fnmatch for wildcard support. here is what I implemented for reference, feel free to rip anything you want:

https://github.com/dzzie/dnsblock/blob/master/dnsblock.py#L93

as an aside, on Win10 i ended up deleting the dnscache service from the registry now I can see the actual calling process making the request instead of everything just showing the dnscache service pid. not sure if fakenet already worked around that in another way

@strictlymike
Copy link
Collaborator Author

Thanks! FakeNet-NG does have a setting for stopping the DNS resolver so that the originating PID is visible in log output instead of some svchost.exe instance (the setting name escapes me at the moment).

Thanks for the code sample, we will scrape as needed! ;-)

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