# mdnsjava **Repository Path**: mirrors_andyglick/mdnsjava ## Basic Information - **Project Name**: mdnsjava - **Description**: Multicast DNS (mDNS) [RFC 6762] & DNS-Based Service Discovery (DNS-SD) [RFC6763] in Java - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Multicast DNS (mDNS) & DNS-Based Service Discovery (DNS-SD) in Java ## Important At this time please use version 2.1.5 or the 2.1.6 snapsots. The master branch has bugs that I am addressing. Once operational the master branch will be published as a new version and added to the Maven Repository. Thank you for your patience while I fix the previously reported bugs and add new functionality, such as support for all RFC 2782 SRV domain names. ## Introduction The Multicast DNS (mDNS) [[RFC 6762](http://tools.ietf.org/html/rfc6762)] & DNS-Based Service Discovery (DNS-SD) [[RFC 6763](http://tools.ietf.org/html/rfc6763)] in Java (mdnsjava) project is an extension of dnsjava ([dnsjava.org](http://www.dnsjava.org/)) that implements Multicast DNS (mDNS) [[RFC 6762](http://tools.ietf.org/html/rfc6762)] and DNS-Based Service Discovery (DNS-SD) [[RFC 6763](http://tools.ietf.org/html/rfc6763)] in Java (aka. Bonjour in Java). Unlike other mDNS/DNS-SD implementations mdnsjava does not artificially bind the mDNS and DNS-SD functionality into a single API, instead treating each as a separate feature that is independent from, but related to, the other. This allows clients to use Multicast DNS (mDNS) [RFC 6762](http://tools.ietf.org/html/rfc6762) for name resolution without having to worry about service discovery and simplifies the use of DNS-Base Service Discovery using plain old Unicast DNS (mDNS can be used as a substitiute for DNS for name resolution and DNS can be used as a substitute for mDNS for service discovery). ## Features * Multicast DNS (mDNS) Responder * Multicast DNS (mDNS) Querier * Service Registration/Unregistration * Browsing for Services * Browsing for DNS/mDNS Resource Records * Resolving/Looking up Services synchronously and asynchronously * Resolving/Looking up DNS/mDNS Resource Records synchronously and asynchronously * Tested with dnsjava versions 2.1.4, 2.1.5, 2.1.6 and 2.1.7. ## Changelog ### Version 2.2.0 Changes * **Changed Java Package from org.xbill.mDNS -> net.posick.mdns**. mdnsjava uses dnsjava for DNS functionality, but is not part of the dnsjava project. * **Full Maven Support**. Maven is now the build system for mdnsjava. ## Dependencies This project depends on: * [dnsjava.org](http://www.dnsjava.org/) project, version 2.1.5 or higher. (may work with early versions) * Java SE 1.5 or higher ## Command Line Tool Usage ``` $java -jar mdnsjava.jar or $java -cp mdnsjava.jar:dnsjava.jar dnssd Command Line: dnssd