You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>with_unicast_response_bit.qd[0].show()
###[ DNS Question Record ]###qname=b'Q._qotd._tcp.local.'qtype=ALLqclass=32769
>>>with_cache_flush_bit.an[0].show()
###[ DNS Resource Record ]###rrname=b'Q._qotd._tcp.local.'type=TXTrclass=32769ttl=4500rdlen=Nonerdata= [b'']
Expected result
tshark shows
Q._qotd._tcp.local: type ANY, class IN, "QU" question
Name: Q._qotd._tcp.local
[Name Length: 18]
[Label Count: 4]
Type: ANY (255) (A request for all records the server/cache has available)
.000 0000 0000 0001 = Class: IN (0x0001)
1... .... .... .... = "QU" question: True
and
Q._qotd._tcp.local: type TXT, class IN, cache flush
Name: Q._qotd._tcp.local
Type: TXT (16) (Text strings)
.000 0000 0000 0001 = Class: IN (0x0001)
1... .... .... .... = Cache flush: True
Time to live: 4500 (1 hour, 15 minutes)
Data length: 1
TXT Length: 0
TXT:
Multicast DNS defines the top bit in the class field of a DNS
question as the unicast-response bit. When this bit is set in a
question, it indicates that the querier is willing to accept unicast
replies in response to this specific query, as well as the usual
multicast responses. These questions requesting unicast responses
are referred to as "QU" questions, to distinguish them from the more
usual questions requesting multicast responses ("QM" questions).
the host MUST then
send a series of unsolicited announcements to update cache entries in
its neighbor hosts. In these unsolicited announcements, if the
record is one that has been verified unique, the host sets the most
significant bit of the rrclass field of the resource record. This
bit, the cache-flush bit, tells neighboring hosts that this is not a
shared record type.
The text was updated successfully, but these errors were encountered:
Brief description
Currently the unicast-response and cache-flush bits aren't supported.
(It's mostly cosmetic because it's possible to get/set those bits manually. It's just something I noticed when I started playing with #4385)
Scapy version
f17e8da
Python version
3.12.3
Operating system
6.8.9-300.fc40.x86_64
Additional environment information
No response
How to reproduce
Actual result
Expected result
tshark
showsand
Q._qotd._tcp.local: type TXT, class IN, cache flush Name: Q._qotd._tcp.local Type: TXT (16) (Text strings) .000 0000 0000 0001 = Class: IN (0x0001) 1... .... .... .... = Cache flush: True Time to live: 4500 (1 hour, 15 minutes) Data length: 1 TXT Length: 0 TXT:
respectively.
Related resources
https://datatracker.ietf.org/doc/html/rfc6762#section-19
https://datatracker.ietf.org/doc/html/rfc6762#section-5.4
https://datatracker.ietf.org/doc/html/rfc6762#section-10.2
The text was updated successfully, but these errors were encountered: