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

Reading the authentic data (ad) flag on responses #159

Open
glts opened this issue Nov 7, 2022 · 4 comments
Open

Reading the authentic data (ad) flag on responses #159

glts opened this issue Nov 7, 2022 · 4 comments
Milestone

Comments

@glts
Copy link
Contributor

glts commented Nov 7, 2022

Is it true that the stub resolver does not currently support the ‘authentic data’ flag? Like dig +adflag? Or could you explain how to access this flag?

If it isn’t available yet, then please consider this a feature request.

Thank you.

@glts
Copy link
Contributor Author

glts commented Nov 7, 2022

I should have researched more before posting. The stub resolver’s Answer contains a Message, and the ad flag can be accessed via that message’s Header.

@glts glts closed this as completed Nov 7, 2022
@partim
Copy link
Member

partim commented Nov 7, 2022

This isn’t quite like dig’s +adflag, though, as that sets the AD flag also on the request, which currently isn’t possible. This should probably be added to the ResolvOptions. (Incidentally, the man page says dig uses +adflag by default.)

@glts
Copy link
Contributor Author

glts commented Nov 7, 2022

Ah yes, I just tried it on a host where dig shows ad but this resolver doesn't. So I suppose this is a feature request ...

@glts glts reopened this Nov 7, 2022
@partim partim added this to the 0.8.0 milestone Nov 7, 2022
@partim
Copy link
Member

partim commented Apr 20, 2023

We are planning some refactoring of the stub resolver as part of 0.9, so I am moving the issue to that.

@partim partim modified the milestones: 0.8.0, 0.9.0 Apr 20, 2023
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