Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#115 Incorrect response for a query with unknown class

open-fixed
Pierre Frisch
5
2011-12-06
2011-12-05
Anonymous
No

The mDNS specification states about Responses in Section 6:

" [...]the record rrclass must match the question qclass unless the qclass is "ANY" (255). [...]
A Multicast DNS Responder MUST only respond when it has a positive non-null response to send. "

As the specification states, the mDNS daemon must only respond when it has an answer for a query. Even when the daemon has a record that matches the name or the type of the record in the question, if the class of the record does not match, the daemon must not answer.

However, when JmDNS receives a query asking for a service with unknown class, it incorrectly responds to the query instead of ignoring it.
In contrast, both Avahi and Bonjour ignore the same query.

Discussion

  • Pierre Frisch
    Pierre Frisch
    2011-12-06

    commit -m "Incorrect response for a query with unknown class - ID: 3451753" /Users/pierre/Projects/workspace/jmdns/CHANGELOG.txt /Users/pierre/Projects/workspace/jmdns/.settings/org.eclipse.core.resources.prefs /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSCache.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSEntry.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSQuestion.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/HostInfo.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/ServiceInfoImpl.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Announcer.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Canceler.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Prober.java /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Renewer.java
    Sending /Users/pierre/Projects/workspace/jmdns/.settings/org.eclipse.core.resources.prefs
    Sending /Users/pierre/Projects/workspace/jmdns/CHANGELOG.txt
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSCache.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSEntry.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/DNSQuestion.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/HostInfo.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/ServiceInfoImpl.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Announcer.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Canceler.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Prober.java
    Sending /Users/pierre/Projects/workspace/jmdns/src/main/java/javax/jmdns/impl/tasks/state/Renewer.java
    Transmitting file data ...
    Committed revision 327.

     
  • Pierre Frisch
    Pierre Frisch
    2011-12-06

    • assigned_to: nobody --> spearway
    • status: open --> open-fixed
     
  • Please let me know if you're looking for a article writer for your weblog. You have some really good articles and I feel I would be a good asset. If you ever want to take some of the load off, I'd really like to write some material for your blog in exchange for a link back to mine. Please send me an e-mail if interested. Regards!
    north face jackets clearance http://zvllogwhqu.blinkweb.com/