# multicast_dns 0.3.3+1

Dart package for performing mDNS queries (e.g. Bonjour, Avahi).




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add multicast_dns
```
Published: 2026-06-09T19:08:38.103069Z
Expected archive SHA-256: 134668a9605c747322d8c3eb0e89a4c0cbdedb29f8d2d5ae29d14daef724987b

Available in cache; verification: upstream_checksum
## Direct dependencies
- meta: ^1.3.0

## Package README (untrusted upstream documentation)
# Multicast DNS package

Based on [RFC 6762 Multicast DNS](https://datatracker.ietf.org/doc/html/rfc6762).

[![pub package](https://img.shields.io/pub/v/multicast_dns.svg)](
https://pub.dartlang.org/packages/multicast_dns)

A Dart package to do service discovery over multicast DNS (mDNS), Bonjour, and Avahi.

## Usage

[The example](https://pub.dev/packages/multicast_dns/example) demonstrates how
to use the `MDnsClient` Dart class in your code.

## Changelog
## 0.3.3+1

* Updates metadata for move to https://github.com/flutter/core-packages.
* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.

## 0.3.3

* Adds an optional error callback for `MDnsClient::start` to prevent uncaught exceptions.

## 0.3.2+8

* Fixes stack overflows ocurring during the parsing of domain names in MDNS messages.
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.

## 0.3.2+7

* Optimized Socket Binding: Always bind to 0.0.0.0 for simplicity and efficiency.
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.

## 0.3.2+6

* Improves links in README.md.

## 0.3.2+5

* Updates `PendingRequest` to be a `base class` for Dart 3.0 compatibility.
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.

## 0.3.2+4

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

## 0.3.2+3

* Removes use of `runtimeType.toString()`.
* Updates minimum SDK version to Flutter 3.0.

## 0.3.2+2

* Fixes lints warnings.

## 0.3.2+1

* Migrates from `ui.hash*` to `Object.hash*`.

## 0.3.2

* Updates package description.
* Make [MDnsClient.start] idempotent.

## 0.3.1

* Close IPv6 sockets on [MDnsClient.stop].

## 0.3.0+1

* Removed redundant link in README.md file.

## 0.3.0

* Migrate package to null safety.

## 0.2.2
* Fixes parsing of TXT records. Continues parsing on non-utf8 strings.

## 0.2.1
* Fixes the handling of packets containing non-utf8 strings.

## 0.2.0
* Allow configuration of the port and address the mdns query is performed on.

## 0.1.1

* Fixes [flutter/issue/31854](https://github.com/flutter/flutter/issues/31854) where `decodeMDnsResponse` advanced to incorrect code points and ignored some records.

## 0.1.0

* Initial Open Source release.
* Migrates the dartino-sdk's mDNS client to Dart 2.0 and Flutter's analysis rules
* Breaks from original Dartino code, as it does not use native libraries for macOS and overhauls the `ResourceRecord` class.







 
