-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dns resolution skipping over nameservers with valid responses #18662
Conversation
@@ -1093,7 +1093,7 @@ def parse_config_file | |||
when /^\s*search\s+(.*)/ | |||
self.searchlist = $1.split(" ") | |||
when /^\s*nameserver\s+(.*)/ | |||
self.nameservers = $1.split(" ") | |||
self.nameservers += $1.split(" ") | |||
end | |||
end | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the windows codepath get handled correctly? Probably worth a check after the unix-y path works 馃憖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to this random issue report (I couldn't find a better example of what gets returned) it should be correct for windows
https://bugs.ruby-lang.org/issues/12604
but I'll be sure to verify this on windows myself too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a windows dev env set up too, let me know if you've got replication steps you want me to follow 馃憤
16bcd8f
to
4bdff53
Compare
Can we verify with the docs/schema that there isn't more edegcases to consider in the /etc/resolv.conf config format? 馃 Edit: Looks like there's some |
Forgot to reply to this earlier apologies |
Not a blocker: This would be easier to test if there was a top level resolve command, similar to the one in Meterpreter 馃槃 |
Worked against my custom /etc/resolv.conf file 馃憤
|
Release NotesFixes an edgecase where |
I think @zeroSteiner has got us covered here now with the work he's doing in the same area馃 |
Continuation of #18660
Recommend turning whitespace changes off for this one https://github.com/rapid7/metasploit-framework/pull/18662/files?diff=unified&w=1
There have been a few issues reported with DNS resolution recently this PR aims to resolve (馃榿) those
Noticed a couple of issues:
/etc/resolv.conf
with the last nameserver overwriting the previous one(s)