Remove old DnsRequestoptions usage for dns connector
@@ -16,10 +16,7 @@ use crate::{connectors::prelude::*, system::KillSwitch};
use async_std::channel::{bounded, Receiver, Sender};
use async_std_resolver::{
lookup::Lookup,
- proto::{
- rr::{RData, RecordType},
- xfer::DnsRequestOptions,
- },
+ proto::rr::{RData, RecordType},
resolver_from_system_conf, AsyncStdResolver,
};
use std::boxed::Box;
@@ -111,11 +108,7 @@ impl DnsSink {
let data = if let Some(record_type) = record_type {
// type lookup
- lookup_to_value(
- &resolver
- .lookup(name, record_type, DnsRequestOptions::default())
- .await?,
- )
+ lookup_to_value(&resolver.lookup(name, record_type).await?)
} else {
// generic lookup
lookup_to_value(resolver.lookup_ip(name).await?.as_lookup())
