Skip to content

Since sing-box 1.14.0

mDNS

Structure

{
  "dns": {
    "servers": [
      {
        "type": "mdns",
        "tag": "",

        "interface": [],

        // Dial Fields
      }
    ]
  }
}

You usually do not need an explicit mdns server in addition to a Local server: the local server already routes queries for *.local. and IPv4/IPv6 link-local reverse zones via mDNS on non-Apple platforms and via the system resolver on Apple platforms. Add an explicit mdns server only when you want to reference it from preferred_by or use it standalone.

Fields

interface

List of network interface names to send mDNS queries on.

When empty, all interfaces that are up, multicast-capable, and non-loopback are used.

Dial Fields

See Dial Fields for details.