You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/CaptfEncoder/CaptfEncoder-V3/query/src/dns_lookup
    
    the code of the file until where you have to start completion: use std::collections::HashMap;
use std::fmt::Write;
use std::time::Duration;

use super::internal::trust_dns_resolver::{
    config::{ResolverCon
    
pub async fn fetch(input: &str, _options: Option<HashMap<String, String>>) -> Result<QueryResult> {
    let dns_resolver = AsyncResolver::tokio(
        ResolverConfig::default(),
        ResolverOpts {
            timeout: Duration::from_secs(5),
            ..Default::default()
        },
    )?;

    let res = dns_resolver.lookup_ip(input).await?;

    let mut out = String::new();

    for elem in res.iter() {
        writeln!(&mut out, "{:?}", elem)?
    }
    let result = QueryResult {
        successed: true,
        val: out,
        message: String::from(""),
    };
    Ok(result)
}