You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -631,7 +629,7 @@ impl GenericResolver for NameServer {
631
629
name:N,
632
630
options:O,
633
631
) -> Result<DnsResponse,LookupError>{
634
-
usecrate::libdns::proto::error::ProtoErrorKind;
632
+
usecrate::libdns::proto::ProtoErrorKind;
635
633
let name = name.into_name()?;
636
634
let options:LookupOptions = options.into();
637
635
@@ -780,32 +778,13 @@ pub trait GenericResolver {
780
778
781
779
#[async_trait::async_trait]
782
780
pubtraitGenericResolverExt{
783
-
/// Generic lookup for any RecordType
784
-
///
785
-
/// # Arguments
786
-
///
787
-
/// * `name` - name of the record to lookup, if name is not a valid domain name, an error will be returned
788
-
/// * `record_type` - type of record to lookup, all RecordData responses will be filtered to this type
789
-
///
790
-
/// # Returns
791
-
///
792
-
// A future for the returned Lookup RData
793
-
// async fn lookup<N: IntoName + Send>(
794
-
// &self,
795
-
// name: N,
796
-
// record_type: RecordType,
797
-
// ) -> Result<Lookup, ResolveError>;
798
-
799
781
/// Performs a dual-stack DNS lookup for the IP for the given hostname.
800
782
///
801
783
/// See the configuration and options parameters for controlling the way in which A(Ipv4) and AAAA(Ipv6) lookups will be performed. For the least expensive query a fully-qualified-domain-name, FQDN, which ends in a final `.`, e.g. `www.example.com.`, will only issue one query. Anything else will always incur the cost of querying the `ResolverConfig::domain` and `ResolverConfig::search`.
802
784
///
803
785
/// # Arguments
804
786
/// * `host` - string hostname, if this is an invalid hostname, an error will be returned.
0 commit comments