-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
openpgp: Use DNS resolver of OS #31
Conversation
Ok. I've fired up the CI, lemme know when it's ready for review. |
I tried to setup reproducible tests: But, GnuPG doesn't act as expected for reasons. Gonna test further, when I have more brain power again. |
I decided to test directly on my Gentoo laptop.
This results in DNS resolution working if you use the system's DNS resolver. But, it fails if you do recursive DNS resolution: With that setup, a refresh over WKD still works without this PR having been applied:
Apparently, GnuPG doesn't solely rely on recursive DNS resolution. On my corporate laptop, I had to set "standard-resolver" in |
@mgorny If at all, I think it's better to just provide a config option to be able to turn "standard-resolver" on if desired. |
I don't mind closing this PR. |
Well, lemme rephrase: is there any real advantage to using GPG's recursive resolver? |
Sorry, my question might have been unclear: is there any reason not to merge it as-is? |
The only thing that comes to mind is the 2nd sentence:
Nevertheless, I prefer having the operating system's DNS resolver in use. If you run into problems (in corporate networks or public wifi hotspots) with DNS resolution provided by the operating system, you more likely know where to look at. Since recently, I didn't know of GnuPG's approach. Debugging with dirmngr's FYI, AFAIK GnuPG doesn't support DNSSEC (see bug T4618). |
So, I prefer this PR getting merged due to above reasons or giving the user the choice between "--recursive-resolver" and "--standard-resolver". But, I don't know whether it's worth investing time implementing this with PR27 being worked on. |
Signed-off-by: David Sardari <[email protected]>
I agree. It's the same thing as with proxy — GPG does weird stuff by default for "reasons", and you don't learn of it until it causes an actual problem. |
No description provided.