*add getResolvers method
This commit is contained in:
parent
f3fb63d2b8
commit
32e2edaf6b
11
src/index.ts
11
src/index.ts
|
@ -48,6 +48,17 @@ export async function clear() {
|
|||
await callModule(DNS_MODULE, "clear");
|
||||
}
|
||||
|
||||
export async function getResolvers() {
|
||||
await loadLibs();
|
||||
const [resp, err] = await callModule(DNS_MODULE, "getResolvers");
|
||||
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
|
||||
return resp;
|
||||
}
|
||||
|
||||
export async function ready() {
|
||||
await loadLibs();
|
||||
const [resp, err] = await callModule(DNS_MODULE, "ready");
|
||||
|
|
Loading…
Reference in New Issue