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

Example of how to do a reverse lookup, i.e. get node to return PTR record(s)? #3

Closed Nodi-Rubrum closed 2 years ago

Nodi-Rubrum commented 3 years ago

Example of how to do a reverse lookup, i.e. get node to return PTR record(s)?

blaxer commented 2 years ago

+1 to this request, I have tried it and cannot seem to get PTR lookups working....

xk commented 2 years ago

node's dns.resolve() can´t do that:

https://github.com/xk/node-red-contrib-DNSQuery/blob/master/dnsquery.js#L100 https://nodejs.org/api/dns.html#dns_dns_resolve_hostname_rrtype_callback

For reverse queries node's got this which we´re not using:

https://nodejs.org/api/dns.html#dns_dns_reverse_ip_callback

El mar, 21 sept 2021 a las 20:28, blaxer @.***>) escribió:

+1 to this request, I have tried it and cannot seem to get PTR lookups working....

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xk/node-red-contrib-DNSQuery/issues/3#issuecomment-924250164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXQY5TKPLZJ64PO74AOW3UDDFFRANCNFSM4QWXXXUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.