mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-21 00:06:03 +02:00
Template passtrough for dns server information
This commit is contained in:
@ -27,20 +27,20 @@ use std::net::IpAddr;
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Default, Clone)]
|
||||
pub struct DnsLookupResult {
|
||||
a: Option<Vec<IpAddr>>,
|
||||
aaaa: Option<Vec<IpAddr>>,
|
||||
aname: Option<Vec<String>>,
|
||||
cname: Option<Vec<String>>,
|
||||
mx: Option<Vec<MxRecord>>,
|
||||
ns: Option<Vec<String>>,
|
||||
soa: Option<Vec<SoaRecord>>,
|
||||
txt: Option<Vec<String>>,
|
||||
srv: Option<Vec<SrvRecord>>,
|
||||
caa: Option<Vec<String>>,
|
||||
other_error: bool,
|
||||
dns_error: bool,
|
||||
nxdomain: bool,
|
||||
timeout: bool,
|
||||
pub a: Option<Vec<IpAddr>>,
|
||||
pub aaaa: Option<Vec<IpAddr>>,
|
||||
pub aname: Option<Vec<String>>,
|
||||
pub cname: Option<Vec<String>>,
|
||||
pub mx: Option<Vec<MxRecord>>,
|
||||
pub ns: Option<Vec<String>>,
|
||||
pub soa: Option<Vec<SoaRecord>>,
|
||||
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,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Clone, PartialEq)]
|
||||
|
Reference in New Issue
Block a user