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

Error: queryTxt ENOTFOUND payload.domain #6

Open vsolc opened 10 months ago

vsolc commented 10 months ago

I need to send domain name as a msg property to this node, because I need to chech list of domains which I receive as data. But when I configure DNSQuery to receive domain name as payload property (payload.domain for example) it does not accept the data and return following payload:

payload: ok: false error: "Error: queryTxt ENOTFOUND payload.domain" dns_ip: "127.0.0.53" type: "TXT" domain: "payload.domain" answer: undefined

using latest vesion 1.0.7

rperciaccante commented 4 months ago

Had the same problem, the help is not clear. To override the info in the DNSQuery node, send the info to the node like this:

msg.payload.domain_name = "yahoo.com"
msg.payload.record_type = "TXT"
msg.payload.dns_ip = "1.1.1.1"

I only figured that out from the Github and flows.nodered.org descriptions:


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.