
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Middleware for Node.js web servers to expose DNS over HTTPS (DoH).
Implemented draft specification: DNS Queries over HTTPS (DoH) version 14 [draft-ietf-doh-dns-over-https-14].
Playdoh powers the 🐑 Commons Host DNS over HTTPS service.
Configure Firefox to use Commons Host DNS over HTTPS in 3 steps.
Use Firefox 62+
Browse to: about:config
Search: network.trr.
Configure:
| Preference Name | Value |
|---|---|
network.trr.mode | 2 |
network.trr.uri | https://commons.host |
Done! You are now using the Trusted Recursive Resolver (TRR). Enjoy a more private and secure Internet.

Note: HTTP/2 is the minimum recommended version of HTTP for use with DoH.
const { playdoh } = require('playdoh')
// Defaults
const options = {
// udp4 (IPv4) or udp6 (IPv6)
protocol: 'udp4',
// Defaults to 0.0.0.0 (udp4) or ::0 (udp6)
localAddress: '',
// Defaults to 127.0.0.1 (udp4) or ::1 (udp6)
resolverAddress: '',
// Standard DNS port
resolverPort: 53,
// Maximum DNS lookup duration
timeout: 10000
}
const middleware = playdoh(options)
middleware(request, response, next)The middleware function follows the Node.js convention and is compatible with most popular web server frameworks.
protocolDefault: udp4
Can be either udp4 or udp6 to indicate whether to connect to the resolver over IPv4 or IPv6 respectively.
localAddressDefault: 0.0.0.0 (IPv4) or ::0 (IPv6)
The UDP socket is bound to this address.
Use a loopback IP address ('' empty string, localhost, 127.0.0.1, or ::1) to only accept local DNS resolver responses.
Use a wildcard IP address (0.0.0.0 or ::0) to accept remote DNS resolver responses.
resolverAddressDefault: 127.0.0.1 (IPv4) or ::1 (IPv6)
The IP address of the DNS resolver. Queries are sent via UDP.
See also: List of public DNS service operators on Wikipedia.
resolverPortDefault: 53
The port of the DNS resolver.
timeoutDefault: 10000
Number of milliseconds to wait for a response from the DNS resolver.
const connect = require('connect')
const { createSecureServer } = require('http2')
const app = connect()
app.use(middleware)
const options = {
key: fs.readFileSync('server-key.pem'),
cert: fs.readFileSync('server-cert.pem')
}
const server = createSecureServer(options, app)
server.listen(443)
const fastify = require('fastify')({
http2: true,
https: {
key: fs.readFileSync('server-key.pem'),
cert: fs.readFileSync('server-cert.pem')
}
})
fastify.use(middleware)
fastify.listen(443)
Made by Kenny Shen and Sebastiaan Deckers for 🐑 Commons Host.
FAQs
DNS over HTTPS middleware
The npm package playdoh receives a total of 6 weekly downloads. As such, playdoh popularity was classified as not popular.
We found that playdoh 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.