xk / node-red-contrib-DNSQuery

Node-RED node: Gets the DNS records of a given type of a domain name.
Other
1 stars 0 forks source link

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).

Returns the data in msg.payload with following content:

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

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

Example:

example example example