use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DnsRecords {
pub a: Vec<String>,
pub aaaa: Vec<String>,
pub mx: Vec<String>,
pub ns: Vec<String>,
pub soa: Vec<String>,
pub txt: Vec<String>,
pub cname: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DomainDnsResult {
pub timestamp: String,
pub domain: String,
pub records: DnsRecords,
pub response_time_ms: u128,
}
pub async fn get_dns_records(
_domain: &str,
_progress_tx: Option<tokio::sync::mpsc::Sender<crate::ScanProgress>>,
) -> Result<DomainDnsResult, Box<dyn std::error::Error + Send + Sync>> {
Err(crate::error::WebAnalyzerError::UnsupportedPlatform("Mobile integration via hickory-resolver is pending implementation.".into()).into())
}