*add getResolvers method

This commit is contained in:
Derrick Hammer 2022-08-18 19:45:31 -04:00
parent f3fb63d2b8
commit 32e2edaf6b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 11 additions and 0 deletions

View File

@ -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");