diff --git a/src/index.ts b/src/index.ts index 51c94d1..7486536 100644 --- a/src/index.ts +++ b/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");