-
-
Notifications
You must be signed in to change notification settings - Fork 92
Reverse lookups and PTR packages #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! I hit this today, and did a bit more digging, but have also hit a wall. The
Unfortunately, that still doesn't work. I've included relevant captures below. The first (from From
And from
|
I did some more looking, and adding the following code:
causes the packet to include the OPT additional. The weird thing is that doing so with multicast-dns results in a packet that's one byte longer than it should be. The request packet from multicast-dns:
The diff between the above packet (from node) and the one from dig in my previous comment:
The implications here are that the node-produced packet is one byte longer but no fields are different. The raw packet bytes are: From
From node:
Note the extra 0x00 byte at the end. |
This smells like an off-by-one error in the encoder resulting in malformed packets that are getting ignored, but I am not an expert. |
@mafintosh I know this issue is years and years old, but I'd love it if you could take another look, especially since you're more familiar with the encoder. I am emphatically not a JS programmer. |
@thenewwazoo it seems that @mafintosh is most probably like the rest of use have limited time for maintenance :) |
Progress! If I specify
|
Lets 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:What I can see when I monitor the network using Wireshark is that the mDNS query is malformed and
type
andclass
are missing:A valid query (e.g. generated using
dig -p 5353 @224.0.0.251 -x 192.168.178.26
) would be as the following: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.
The text was updated successfully, but these errors were encountered: