Open glts opened 2 years ago
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
.
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.)
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 ...
We are planning some refactoring of the stub resolver as part of 0.9, so I am moving the issue to that.
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.