Open vsolc opened 10 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.
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