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, make sure 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 (RS) nodes if you are using the Replica of feature.
First, make sure 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:
apt-get install libnss-mdns
In RHEL / CentOS 6.x:
$ rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ yum install nss-mdns $ service avahi-daemon start
In RHEL / CentOS 7:
$ rpm -ivh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm $ yum install nss-mdns $ service avahi-daemon start
If you are using mDNS along with IPv6 addresses (see more details in Multi-IP & IPv6, make sure 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