Socket
Socket
Sign inDemoInstall

dns-middleware

Package Overview
Dependencies
10
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dns-middleware

DNS-lookup middleware for connect/express


Version published
Maintainers
1
Created

Readme

Source

dns-middleware

DNS-lookup middleware for express/connect

Usage

The passed request must have a body consisting of JSON with the following keys:

query

  • The address queried

type (defaults to: 'A')

  • The type of query made

server (defaults to: '8.8.8.8')

  • The server to make the query from

The answer is passed back as a JSON with the following keys:

answer

  • Contains all the answer-sections in an array

time

  • The time it took to make the request

Example

See: dns-middleware-example

License

Unless stated elsewhere, the license as in the LICENSE-file

Keywords

FAQs

Last updated on 04 Oct 2012

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc