{
  "id": "mdns",
  "title": "Client prerequisites for mDNS",
  "url": "https://redis.io/docs/latest/operate/rs/7.8/networking/mdns/",
  "summary": "Requirements for using the mDNS protocol in development and testing environments.",
  "content": "\nmDNS is only supported for development and testing environments.\n\n\nIf you choose to use the mDNS protocol when [you set the cluster name](),\nmake sure that the configurations and prerequisites for resolving database endpoints are met on the client machines.\nIf you have [Replica Of]() databases on the cluster,\nthe configurations and prerequisites are also required for the Redis Enterprise Software nodes.\n\nTo prepare a client or node for mDNS:\n\n1. Make sure that the clients and cluster nodes are on the same physical network\n    or have the network infrastructure configured to allow multicasting between them.\n1. Install these prerequisite packages:\n\n    - For Ubuntu:\n\n        ```sh\n        apt-get install libnss-mdns\n        ```\n\n    - For RHEL/CentOS 6.x:\n\n        ```sh\n        $ rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm\n        $ yum install nss-mdns\n        $ service avahi-daemon start\n        ```\n\n    - For RHEL/CentOS 7:\n\n        ```sh\n        $ rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm\n        $ yum install nss-mdns\n        $ service avahi-daemon start\n        ```\n\n1. If you are using [mDNS with IPv6 addresses](),\n    update the hosts line in `/etc/nsswitch.conf` to:\n\n    ```yaml\n    hosts: files mdns4_minimal\n    \\[NOTFOUND=return\\] mdns\n    ```\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-04-01T08:10:08-05:00"
}

