Knowledge (XXG)

Multicast DNS

Source 📝

129:
query message that asks the host having that name to identify itself. That target machine then multicasts a message that includes its IP address. All machines in that subnet can then use that information to update their mDNS caches. Any host can relinquish its claim to a name by sending a response
230:
The header is identical to that found in unicast DNS, as are the sub-sections in the data part: queries, answers, authoritative-nameservers, and additional records. The number of records in each sub-section matches the value of the corresponding *COUNT field in the header.
327:
The UNICAST-RESPONSE field is used to minimize unnecessary broadcasts on the network: if the bit is set, responders SHOULD send a directed-unicast response directly to the inquiring node rather than broadcasting the response to the entire network.
147:
includes hosts that do not implement mDNS but that can be found via a conventional unicast DNS server. Resolving such conflicts requires network-configuration changes that mDNS was designed to avoid.
324:
of the DNS, or by a byte with the two high-order bits set (value 192) to signal an indirect pointer to another location in the message. This is known as name compression in RFC 6762.
448:
The CACHE-FLUSH bit is used to instruct neighbor nodes that the record should overwrite, rather than be appended onto, any existing cached entries for this RRNAME and RRTYPE.
339:
All records in the answers, authoritative-nameservers, and additional records sections have the same format and are collectively known as Resource Records (RR).
73:
implementation was limited to discovering networked printers, subsequent releases resolved hostnames as well. mDNS can work in conjunction with
239:
The wire format for records in the query section is slightly modified from that in unicast DNS, adding the single-bit UNICAST-RESPONSE field.
683: 469: 57:(DNS). It was designed to work as either a stand-alone protocol or compatible with standard DNS servers. It uses IP multicast 455:(DNS-SD), the most common use-case for mDNS, specifies slight modifications to some of their formats (notably TXT records). 78: 50: 38: 678: 317: 376: 273: 53:
service, using essentially the same programming interfaces, packet formats and operating semantics as unicast
58: 594: 452: 74: 636: 576: 517: 475: 464: 224: 62: 54: 342:
Resource Records in mDNS also have a slightly modified general format compared to unicast DNS:
278:
The type of the query, i.e. the type of Resource Record which should be returned in responses.
193: 626: 566: 507: 106: 82: 66: 312:
As in unicast DNS, the QNAME field consists of a series of length/value sub-fields called
114: 189: 672: 451:
The formats of the RDATA fields are the same as those found in unicast DNS. However,
98: 170: 159: 131: 126: 639: 616: 579: 556: 520: 501: 110: 86: 46: 155:
An mDNS message is a multicast UDP packet sent using the following addressing:
404: 301: 70: 534: 320:(FQDN). The list is terminated by either a single null-byte representing the 663: 182: 42: 392:
Boolean flag indicating whether outdated cached records should be purged
69:
software packages, included in most Linux distributions. Although the
631: 571: 512: 139: 17: 45:
to IP addresses within small networks that do not include a local
316:. Each label represents one of the dot-separated substrings in a 622: 602: 562: 216: 204: 137:
By default, mDNS exclusively resolves hostnames ending with the
102: 660:- information site maintained by mDNS designer, Stuart Cheshire 657: 428:
Integer representing the length (in octets) of the RDATA field
358: 255: 289:
Boolean flag indicating whether a unicast-response is desired
125:
When an mDNS client needs to resolve a hostname, it sends an
331:
The QCLASS field is identical to that found in unicast DNS.
105:
in 2000, and was eventually published as standards-track
536:
mDNS and DNS-SD slowly making their way into Windows 10
417:
Time interval (in seconds) that the RR should be cached
227:, consisting of two parts—the header and the data. 439:Resource data; internal structure varies by RRTYPE 618:DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION 403:Class code, 1 a.k.a. "IN" for the Internet and 300:Class code, 1 a.k.a. "IN" for the Internet and 61:(UDP) packets and is implemented by the Apple 593:Manning, Bill; Woodcock, Bill (August 2000), 368:Name of the node to which the record pertains 143:top-level domain. This can cause problems if 8: 265:Name of the node to which the query pertains 664:LLMNR, Multicast DNS and names on your LAN 506:. Internet Engineering Task Force (IETF). 630: 570: 511: 496: 494: 492: 344: 241: 117:and Marc Krochmal thirteen years later. 488: 223:The payload structure is based on the 7: 470:Link-Local Multicast Name Resolution 97:Multicast DNS was first proposed by 81:technique specified separately in 25: 194:standard IP multicast MAC address 615:P. Mockapetris (November 1987). 595:"Multicast Domain Name Service" 381:The type of the Resource Record 1: 79:zero-configuration networking 539:, Ctrl blog, 21 October 2015 346:mDNS Resource Record fields 39:computer networking protocol 684:Application layer protocols 318:fully qualified domain name 700: 243:mDNS Query section fields 27:Service discovery protocol 621:. Network Working Group, 225:unicast DNS packet format 101:and Bill Manning in the 77:(DNS-SD), a companion 59:User Datagram Protocol 558:DNS Service Discovery 453:DNS Service Discovery 134:(TTL) equal to zero. 75:DNS Service Discovery 476:Name Service Switch 465:Bonjour Sleep Proxy 347: 244: 679:Domain Name System 345: 242: 55:Domain Name System 51:zero-configuration 446: 445: 310: 309: 211:33:33:00:00:00:FB 199:01:00:5E:00:00:FB 121:Protocol overview 16:(Redirected from 691: 645: 643: 634: 632:10.17487/RFC1035 612: 606: 605: 599:Ietf Datatracker 590: 584: 583: 574: 572:10.17487/RFC6763 553: 547: 546: 545: 544: 531: 525: 524: 515: 513:10.17487/RFC6762 498: 348: 335:Resource Records 286:UNICAST-RESPONSE 245: 214: 213: 202: 201: 178: 177: 167: 166: 151:Packet structure 146: 142: 65:and open-source 21: 699: 698: 694: 693: 692: 690: 689: 688: 669: 668: 654: 649: 648: 614: 613: 609: 592: 591: 587: 555: 554: 550: 542: 540: 533: 532: 528: 500: 499: 490: 485: 461: 337: 237: 209: 208: 197: 196: 190:Ethernet frames 175: 174: 164: 163: 153: 144: 138: 123: 115:Stuart Cheshire 95: 71:Windows 10 28: 23: 22: 15: 12: 11: 5: 697: 695: 687: 686: 681: 671: 670: 667: 666: 661: 653: 652:External links 650: 647: 646: 607: 585: 548: 526: 487: 486: 484: 481: 480: 479: 473: 467: 460: 457: 444: 443: 440: 437: 433: 432: 429: 426: 422: 421: 418: 415: 411: 410: 407: 401: 397: 396: 393: 390: 386: 385: 382: 379: 373: 372: 369: 366: 362: 361: 355: 352: 336: 333: 308: 307: 304: 298: 294: 293: 290: 287: 283: 282: 279: 276: 270: 269: 266: 263: 259: 258: 252: 249: 236: 233: 221: 220: 186: 180: 152: 149: 130:packet with a 122: 119: 94: 91: 41:that resolves 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 696: 685: 682: 680: 677: 676: 674: 665: 662: 659: 658:Multicast DNS 656: 655: 651: 641: 638: 633: 628: 624: 620: 619: 611: 608: 604: 600: 596: 589: 586: 581: 578: 573: 568: 564: 560: 559: 552: 549: 538: 537: 530: 527: 522: 519: 514: 509: 505: 504: 503:Multicast DNS 497: 495: 493: 489: 482: 477: 474: 471: 468: 466: 463: 462: 458: 456: 454: 449: 441: 438: 435: 434: 430: 427: 424: 423: 419: 416: 413: 412: 408: 406: 402: 399: 398: 394: 391: 388: 387: 383: 380: 378: 375: 374: 370: 367: 364: 363: 360: 356: 353: 350: 349: 343: 340: 334: 332: 329: 325: 323: 319: 315: 305: 303: 299: 296: 295: 291: 288: 285: 284: 280: 277: 275: 272: 271: 267: 264: 261: 260: 257: 253: 250: 247: 246: 240: 234: 232: 228: 226: 218: 212: 206: 200: 195: 191: 187: 184: 181: 179: 172: 168: 161: 158: 157: 156: 150: 148: 141: 135: 133: 128: 120: 118: 116: 112: 108: 104: 100: 99:Bill Woodcock 92: 90: 88: 84: 80: 76: 72: 68: 64: 60: 56: 52: 48: 44: 40: 36: 32: 31:Multicast DNS 19: 617: 610: 598: 588: 557: 551: 541:, retrieved 535: 529: 502: 450: 447: 341: 338: 330: 326: 321: 313: 311: 238: 229: 222: 210: 198: 173: 171:IPv6 address 162: 160:IPv4 address 154: 136: 132:time to live 127:IP multicast 124: 96: 34: 30: 29: 405:IP networks 389:CACHE-FLUSH 354:Description 302:IP networks 251:Description 188:When using 165:224.0.0.251 47:name server 673:Categories 543:2017-08-30 483:References 49:. It is a 442:Variable 371:Variable 268:Variable 43:hostnames 459:See also 425:RDLENGTH 183:UDP port 176:ff02::fb 472:(LLMNR) 400:RRCLASS 357:Length 254:Length 235:Queries 93:History 63:Bonjour 37:) is a 377:RRTYPE 365:RRNAME 314:labels 297:QCLASS 192:, the 145:.local 140:.local 109:  85:  478:(NSS) 436:RDATA 351:Field 274:QTYPE 262:QNAME 248:Field 215:(for 207:) or 203:(for 67:Avahi 640:1035 623:IETF 603:IETF 580:6763 563:IETF 521:6762 359:bits 322:root 256:bits 217:IPv6 205:IPv4 185:5353 111:6762 103:IETF 87:6763 35:mDNS 18:MDNS 637:RFC 627:doi 577:RFC 567:doi 518:RFC 508:doi 431:16 420:32 414:TTL 409:15 384:16 306:15 281:16 169:or 113:by 107:RFC 83:RFC 675:: 635:. 625:. 601:, 597:, 575:. 565:. 561:. 516:. 491:^ 395:1 292:1 89:. 644:. 642:. 629:: 582:. 569:: 523:. 510:: 219:) 33:( 20:)

Index

MDNS
computer networking protocol
hostnames
name server
zero-configuration
Domain Name System
User Datagram Protocol
Bonjour
Avahi
Windows 10
DNS Service Discovery
zero-configuration networking
RFC
6763
Bill Woodcock
IETF
RFC
6762
Stuart Cheshire
IP multicast
time to live
.local
IPv4 address
IPv6 address
UDP port
Ethernet frames
standard IP multicast MAC address
IPv4
IPv6
unicast DNS packet format

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.