Skip to content

Instantly share code, notes, and snippets.

@sherief
Forked from reidransom/gist:6033227
Created January 11, 2022 09:00
Show Gist options
  • Select an option

  • Save sherief/616f43f97ce1c267cc0e77fafb1c792c to your computer and use it in GitHub Desktop.

Select an option

Save sherief/616f43f97ce1c267cc0e77fafb1c792c to your computer and use it in GitHub Desktop.
Configure Zeroconf on FreeBSD

Configure Zeroconf on FreeBSD

Install avahi-app and nss_mdns. Note: avahi-app is chosen over avahi because avahi depends on X11.

$ cd /usr/ports/net/avahi-app
$ sudo make config-recursive
$ sudo make install clean
$ cd /usr/ports/dns/nss_mdns
$ sudo make config-recursive
$ sudo make install clean

Add these lines to /etc/rc.conf

dbus_enable="YES"
avahi_daemon_enable="YES"

Change the hosts: line in /etc/nsswitch.conf to

hosts: files dns mdns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment