Refer to redis master by hostname, not necessary to use IP address.

dig returns an empty string if DNS entries are not configured.