diff options
Diffstat (limited to 'cli/tests/testdata/resolve_dns.ts')
-rw-r--r-- | cli/tests/testdata/resolve_dns.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/testdata/resolve_dns.ts b/cli/tests/testdata/resolve_dns.ts index 1757c938e..9b4364311 100644 --- a/cli/tests/testdata/resolve_dns.ts +++ b/cli/tests/testdata/resolve_dns.ts @@ -1,11 +1,12 @@ const nameServer = { nameServer: { ipAddr: "127.0.0.1", port: 4553 } }; -const [a, aaaa, aname, cname, mx, ptr, srv, txt] = await Promise.all([ +const [a, aaaa, aname, cname, mx, ns, ptr, srv, txt] = await Promise.all([ Deno.resolveDns("www.example.com", "A", nameServer), Deno.resolveDns("www.example.com", "AAAA", nameServer), Deno.resolveDns("www.example.com", "ANAME", nameServer), Deno.resolveDns("foo", "CNAME", nameServer), Deno.resolveDns("www.example.com", "MX", nameServer), + Deno.resolveDns("www.example.com", "NS", nameServer), Deno.resolveDns("5.6.7.8", "PTR", nameServer), Deno.resolveDns("_Service._TCP.example.com", "SRV", nameServer), Deno.resolveDns("www.example.com", "TXT", nameServer), @@ -26,6 +27,9 @@ console.log(JSON.stringify(cname)); console.log("MX"); console.log(JSON.stringify(mx)); +console.log("NS"); +console.log(JSON.stringify(ns)); + console.log("PTR"); console.log(JSON.stringify(ptr)); |