neitomic / doh-server

An implementation of DNS server which supports DNS over HTTPS
1 stars 1 forks source link

[enhancement] investigate looking up multiple root servers instead of waiting on 1 #21

Open sonhmai opened 6 days ago

sonhmai commented 6 days ago
          this is one of the root server: a.root-servers.net

https://www.iana.org/domains/root/servers

_Originally posted by @neitomic in https://github.com/neitomic/doh-server/pull/15#discussion_r1659498791_

pub async fn recursive_lookup(socket: &UdpSocket, qname: &str, qtype: QueryType) -> Result<DnsPacket> {
    let mut ns: Ipv4Addr = "198.41.0.4".parse::<Ipv4Addr>()?;

TODO

neitomic commented 6 days ago

What is the strategy? Fire multiple and wait for the first?

sonhmai commented 6 days ago

What is the strategy? Fire multiple and wait for the first?

sounds good. haven't thought about it yet, haha