-
Notifications
You must be signed in to change notification settings - Fork 60
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
TXT records with periods in them are mistaken for multiple txt records #84
Comments
I debugged the javascript, and the period is intact when the data is handed over to this.networking.send(packet); Looking at the wireshark dump, the period is sent as a 0x04 (but should be ASCII 0x2E). I compared with wireshark the packet sent by a working mdns implementation vs. this one. The working implementation correctly sends 0x2e for a period within a txt record. |
I traced it to another module node-dns-js, and it looks like you already fixed it. |
Glad to see someone is still here. I had previously fixed my issue with TXT records by doing: But to test your new PR I removed that one first.
Your new code works as much as it did before, but still fails on the periods within TXT records. BTW, mdns-js/node-dns-js#11 did fix it. |
@phatpaul - please try again |
Yes, that fixed the issue with TXT records. But I'm still not able to get this to work with my application... I'm going back to node-mdns and deal with the tricky install. |
As previously defined in closed issue #70:
TXT records are split if they have periods in the value part. This is allowed by spec, as all 8bit values should be allowed after =.
The resulting record is:
As you see, protocol version should be protocol_version=1.0.0, but instead it is incorrectly split up in multiple txt records.
The text was updated successfully, but these errors were encountered: