Skip to content

Instantly share code, notes, and snippets.

@mcgarrigle
Last active March 3, 2019 20:34
Show Gist options
  • Save mcgarrigle/3d5d32db5a8a7fc85925fd0c3fe93c5f to your computer and use it in GitHub Desktop.
Save mcgarrigle/3d5d32db5a8a7fc85925fd0c3fe93c5f to your computer and use it in GitHub Desktop.
Multicast DNS
Multicast DNS
CentOS:
yum install -y epel-release
yum install -y nss-mdns avahi avahi-tools bind-utils
systemctl stop firewalld
systemctl enable avahi-daemon.service --now
# /etc/nsswitch.conf:
# hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
Ubuntu:
apt-get install avahi-utils dnsutils
# mDNS lookup
dig @224.0.0.251 -p 5353 -t a imac.local
# mDNS service disovery
avahi-browse --all -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment