NLnetLabs / domain

A DNS library for Rust.
https://nlnetlabs.nl/projects/domain/about/
BSD 3-Clause "New" or "Revised" License
363 stars 63 forks source link

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

Open glts opened 2 years ago

glts commented 2 years ago

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 commented 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.

partim commented 2 years ago

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 commented 2 years ago

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 ...

partim commented 1 year ago

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