mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-16 05:53:28 +02:00
Beeter communication of dns errors
This commit is contained in:
17
src/main.rs
17
src/main.rs
@ -706,7 +706,22 @@ async fn get_dig_result(
|
||||
used_dns_resolver: dns_resolver_name.clone(),
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return DigResult {
|
||||
records: DnsLookupResult{
|
||||
invalid_name: true,
|
||||
.. Default::default()
|
||||
},
|
||||
.. Default::default()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return DigResult {
|
||||
records: DnsLookupResult{
|
||||
unkown_resolver: true,
|
||||
.. Default::default()
|
||||
},
|
||||
.. Default::default()
|
||||
}
|
||||
}
|
||||
return Default::default();
|
||||
}
|
||||
|
@ -38,10 +38,12 @@ pub struct DnsLookupResult {
|
||||
pub txt: Option<Vec<String>>,
|
||||
pub srv: Option<Vec<SrvRecord>>,
|
||||
pub caa: Option<Vec<String>>,
|
||||
pub other_error: bool,
|
||||
pub dns_error: bool,
|
||||
pub nxdomain: bool,
|
||||
pub timeout: bool,
|
||||
pub other_error: bool,
|
||||
pub dns_error: bool,
|
||||
pub nxdomain: bool,
|
||||
pub timeout: bool,
|
||||
pub invalid_name: bool,
|
||||
pub unkown_resolver: bool,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq)]
|
||||
|
Reference in New Issue
Block a user