Reverse lookups and PTR packages
See original GitHub issueLets say I know the ip of brunhilde.local
and want to know its host name (i.e. brunhilde.local
!). So I build up my query like this:
mdns.query({questions:[{name:'26.178.168.192.in-addr.arpa.',type:'PTR'}]});
What I can see when I monitor the network using Wireshark is that the mDNS query is malformed and type
and class
are missing:
26.178.168.192.in-addr.arpa: type Unused, class Unknown (3072), "QM" question
A valid query (e.g. generated using dig -p 5353 @224.0.0.251 -x 192.168.178.26
) would be as the following:
26.178.168.192.in-addr.arpa: type PTR, class IN, "QM" question
unfortunately I didn’t have enough time to get deep into the code to see if I’m doing something wrong (or undesired) or is it a valid bug. Any help is appreciated.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
What is a PTR Record and How to Do Reverse IP Lookup?
A PTR record is well-known as the reverse version of an A record. While A record maps the domain name to an IP...
Read more >What Is Reverse DNS and How Does It Work? - phoenixNAP
A PTR record is used to perform reverse DNS lookups. Pointer records are configured within Address and Routing Parameter Area ( in-addr.arpa ) ......
Read more >Reverse DNS Record, PTR, Pointer Record | HostGator Support
A PTR is a reverse record for an IP address that allows an IP to map to a domain and vice versa. That...
Read more >What is PTR Record? - ClouDNS
PTR records (or Pointer records) are used for the Reverse DNS (Domain Name System) lookup. Using the IP address you can get the...
Read more >Reverse DNS Lookup - Plesk
There is a specific PTR record, called the name portion, which stores entries that make reverse DNS lookup possible.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Progress! If I specify
rinfo
in my query, I see a response back on the network. The code now looks like~The problem I’m having now is that nodejs never seems to receive the response datagram that I can see in packet capture.~ Looks like I had a bug in my response handler code, and I am now successfully doing reverse lookups.
@thenewwazoo it seems that @mafintosh is most probably like the rest of use have limited time for maintenance 😃