Skip to content

Node-RED node: Gets the DNS records of a given type of a domain name.

License

Notifications You must be signed in to change notification settings

xk/node-red-contrib-DNSQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • If in msg.payload there's a .dns_ip:string, it overrides the dns_ip setup in the config box DNS IP.

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

About

Node-RED node: Gets the DNS records of a given type of a domain name.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published