You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a 1:1 replacement, it is necessary to use the same interface for changing name servers, rather than having to use dns.platform.name_servers.
I used this code to supply the needed function:
if(undefined===dns.setServers){console.log('setServers is not defined');dns.setServers=function(list){dns.platform.name_servers=list.map(function(item){return{address:item};});};}
The text was updated successfully, but these errors were encountered:
And still not fixed. DOesn't work even with the code above.
UnhandledPromiseRejectionWarning: Error: Server object must be supplied with at least address
at new exports.Request (d:\Files\Code\node\MXTools\git\utils\DNStest\node_modules\native-dns\lib\client.js:62:11)
dns.setServers
is undefined.See this doc: https://nodejs.org/api/dns.html#dns_dns_setservers_servers
For a 1:1 replacement, it is necessary to use the same interface for changing name servers, rather than having to use
dns.platform.name_servers
.I used this code to supply the needed function:
The text was updated successfully, but these errors were encountered: