Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
DNSCrypt - authenticated and encrypted DNS client for nodejs
const dnscrypt = require('dnscrypt');
dnscrypt.resolve('example.com', (err, addresses) => {
if (err) {
console.error(err);
} else {
console.log(addresses);
}
});
// Supports both callback and promise-based styles.
await dnscrypt.resolve4('example.com');
const resolver = dnscrypt.createResolver({ timeout: 1e3 });
dnscrypt.resolve
for single looking up.dnscrypt.createResolver()
for multiple lookups (to avoid repeated certificate requests).dnscrypt.resolve(hostname[, rrtype], callback): void
dnscrypt.resolve(hostname[, rrtype]): Promise
See dns.resolve.
dnscrypt.resolve4(hostname[, options], callback): void
dnscrypt.resolve4(hostname[, options]): Promise
See dns.resolve4.
dnscrypt.resolve6(hostname[, options], callback): void
dnscrypt.resolve6(hostname[, options]): Promise
See dns.resolve6.
dnscrypt.resolveCname(hostname, callback): void
dnscrypt.resolveCname(hostname): Promise
See dns.resolveCname.
dnscrypt.resolveMx(hostname, callback): void
dnscrypt.resolveMx(hostname): Promise
See dns.resolveMx.
dnscrypt.resolveNs(hostname, callback): void
dnscrypt.resolveNs(hostname): Promise
See dns.resolveNs.
dnscrypt.resolvePtr(hostname, callback): void
dnscrypt.resolvePtr(hostname): Promise
See dns.resolvePtr.
dnscrypt.resolveSoa(hostname, callback): void
dnscrypt.resolveSoa(hostname): Promise
See dns.resolveSoa.
dnscrypt.resolveSrv(hostname, callback): void
dnscrypt.resolveSrv(hostname): Promise
See dns.resolveSrv.
dnscrypt.resolveTxt(hostname, callback): void
dnscrypt.resolveTxt(hostname): Promise
See dns.resolveTxt.
dnscrypt.getServers(): DNSStamp[]
Returns an array of active DNS servers.
dnscrypt.createResolver([options]): Resolver
Create a new independent resolver for DNS requests.
options.timeout: number
- The number of milliseconds before a request times out, 2s default.options.unref: bool
- Call .unref()
on internal dgram socket.options.sdns: string
- Use secure DNS resolver instead of default one.The following methods from the dnscrypt
module are available:
resolver.resolve(hostname[, rrtype], callback): void
resolver.resolve(hostname[, rrtype]): Promise
resolver.resolve4(hostname[, options], callback): void
resolver.resolve4(hostname[, options]): Promise
resolver.resolve6(hostname[, options], callback): void
resolver.resolve6(hostname[, options]): Promise
resolver.resolveCname(hostname, callback): void
resolver.resolveCname(hostname): Promise
resolver.resolveMx(hostname, callback): void
resolver.resolveMx(hostname): Promise
resolver.resolveNs(hostname, callback): void
resolver.resolveNs(hostname): Promise
resolver.resolvePtr(hostname, callback): void
resolver.resolvePtr(hostname): Promise
resolver.resolveSoa(hostname, callback): void
resolver.resolveSoa(hostname): Promise
resolver.resolveSrv(hostname, callback): void
resolver.resolveSrv(hostname): Promise
resolver.resolveTxt(hostname, callback): void
resolver.resolveTxt(hostname): Promise
resolver.getServers(): DNSStamp[]
resolver.setServers(sdns): void
Change the address of internal secure DNS server.
resolver.close(): void
Close encrypted DNS session.
MIT, 2019 (c) Dmitriy Tsvettsikh
FAQs
DNSCrypt - authenticated and encrypted DNS client
We found that dnscrypt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.