node-red-contrib-dnsquery 1.0.6

Gets the DNS records of a given type of a domain name.

npm install node-red-contrib-dnsquery

Gets the DNS records of a given type of a domain name.

By default this node gets the A records, but other record types can be queried. The "ANY" record type should return ALL available records (but unfortunately doesn't always work).

  • If in msg.payload there's a .domain_name:string, it overrides the domain_name setup in the config box Domain Name.
  • If in msg.payload there's a .record_type:string, it overrides the record_type setup in the config box Record Type.

Returns the data in msg.payload with following content:

{
   ok:boolean,
   domain:domain,
   type:record_type,
   answer:[
      records
   ],
   error:errortxt,
   dns_ip:ip
}

Uses by default the DNSs of the OS, but you can specify a different one in the config box DNS. dnsquery(v1.0.6)

Example:

example example example

Node Info

Version: 1.0.6
Updated 1 month, 2 weeks ago
License: ISC
Rating: 5.0 1

Downloads

1 in the last day
12 in the last week
67 in the last month

Nodes

  • dnsquery

Keywords

  • node-red

Maintainers

Contributors

  • Jorge Chamorro Bieling, [email protected]
  • bartbutenaers, https://github.com/bartbutenaers
  • Stephen McLaughlin, https://github.com/Steve-Mcl