Skip to content

Support mDNS #8

Description

@iankressin

I'm currently using this lib to discovery peers in the local network using mDNS, and the queries are basically DNS queries.

But every now and then the following error shows up in the console:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: QClass(32769)', src/udp_server.rs:60:57
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

which is probably due to QClass(32769):

As noted in [RFC6762], Multicast DNS can only carry DNS records with classes in the range 0-32767.
Classes in the range 32768 to 65535 are incompatible with Multicast DNS.

This error could be handled internally, but I wonder if it's possible and makes sense to the project to add the support for mDNS within dns_message_parser. If it do, I'll be glad to help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions