Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from japaric/ja-fix-ci
Browse files Browse the repository at this point in the history
fix the explore example
  • Loading branch information
japaric authored Feb 23, 2024
2 parents 9f03274 + 56a9613 commit 795adc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/dns-test/examples/explore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ use dns_test::{Network, Resolver, Result, TrustAnchor, FQDN};

fn main() -> Result<()> {
let network = Network::new()?;
let peer = dns_test::peer();

println!("building docker image...");
let mut root_ns = NameServer::new(FQDN::ROOT, &network)?;
let mut root_ns = NameServer::new(peer.clone(), FQDN::ROOT, &network)?;
println!("DONE");

println!("setting up name servers...");
let mut com_ns = NameServer::new(FQDN::COM, &network)?;
let mut com_ns = NameServer::new(peer.clone(), FQDN::COM, &network)?;

let mut nameservers_ns = NameServer::new(FQDN("nameservers.com.")?, &network)?;
let mut nameservers_ns = NameServer::new(peer.clone(), FQDN("nameservers.com.")?, &network)?;
nameservers_ns
.a(root_ns.fqdn().clone(), root_ns.ipv4_addr())
.a(com_ns.fqdn().clone(), com_ns.ipv4_addr());
Expand Down

0 comments on commit 795adc3

Please sign in to comment.