Add first-class `RESOLVER` modules to `Dns_resolver` for contextual protocol extensions