diff options
author | Thanapat Chotipun <66824385+PatrickChoDev@users.noreply.github.com> | 2022-05-04 01:04:20 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 20:04:20 +0200 |
commit | e3954df8c5f8a5dab7102ebae77dfc217fb9f098 (patch) | |
tree | ded004147738a564f349c9850ad24462bae76128 /cli/tests/testdata/resolve_dns.ts | |
parent | 3f08a40412d89bd54222ad51fc1aaeb508e2e5e7 (diff) |
feat(ext/net): add "NS" record support in Deno.resolveDns API (#14372)
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)); |