Redis Enterprise Software - Operations and Administration Guide

open all | close all

Client prerequisites for mDNS

Note: mDNS is not supported for use with production environments and should only be used in dev/test environments.

If you choose to use the mDNS protocol when setting the cluster name (for details, refer How to set the cluster name), ensure that the configurations and prerequisites, which are required for resolving databases’ endpoints, are met. These configurations and perquisites are needed on the client machines, as well as on the machines you are using as Redis Enterprise Software (RES) nodes if you are using the Replica of feature.

First, ensure that the machines acting as clients and the machines acting as nodes reside on the same physical network, or have the networking infrastructure configured to allow multicasting between them.

Second, install the prerequisite packages, which are different depending on the operating system you are using:

  • In Ubuntu:
    apt-get install libnss-mdns
  • In RHEL / CentOS 6.x:
    $ rpm -ivh
    $ yum install nss-mdns
    $ service avahi-daemon start
  • In RHEL / CentOS 7:
    $ rpm -ivh
    $ yum install nss-mdns
    $ service avahi-daemon start

If you are using mDNS along with IPv6 addresses (see more details in Multi-IP & IPv6), ensure that you also make the following update to the “/etc/nsswitch.conf” file:

  • Update the hosts line to: hosts: files mdns4_minimal [NOTFOUND=return] mdns