summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/lib.deno.ns.d.ts7
-rw-r--r--cli/tests/testdata/resolve_dns.ts.out2
2 files changed, 7 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index f7dc778c3..8ed0ab83e 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -2983,6 +2983,11 @@ declare namespace Deno {
export interface SOARecord {
mname: string;
rname: string;
+ serial: number;
+ refresh: number;
+ retry: number;
+ expire: number;
+ minimum: number;
}
/** If `resolveDns` is called with "SRV" record type specified, it will return an array of this interface. */
@@ -3044,5 +3049,5 @@ declare namespace Deno {
query: string,
recordType: RecordType,
options?: ResolveDnsOptions,
- ): Promise<string[] | MXRecord[] | SRVRecord[] | string[][]>;
+ ): Promise<string[] | MXRecord[] | SOARecord[] | SRVRecord[] | string[][]>;
}
diff --git a/cli/tests/testdata/resolve_dns.ts.out b/cli/tests/testdata/resolve_dns.ts.out
index 487b55546..2a6de755c 100644
--- a/cli/tests/testdata/resolve_dns.ts.out
+++ b/cli/tests/testdata/resolve_dns.ts.out
@@ -13,7 +13,7 @@ NS
PTR
["www.example.com.","alias.example.com."]
SOA
-[{"mname":"net.example.com.","rname":"admin\\.domain.example.com."}]
+[{"mname":"net.example.com.","rname":"admin\\.domain.example.com.","serial":20,"refresh":7200,"retry":600,"expire":3600000,"minimum":60}]
SRV
[{"priority":0,"weight":100,"port":1234,"target":"srv.example.com."}]
TXT