Skip to content

Instantly share code, notes, and snippets.

@jack828
jack828 / mdns-setup.sh
Last active September 22, 2025 18:33
TrueNAS Jail mDNS Setup Kickstarter
# An explanation of this script is available on my blog https://jackburgess.dev/blog/truenas-jails-access-via-mdns
# This allows you a nice way of connecting to your jails via their hostname using mDNS
# e.g. for Netdata, which runs on port 3000, you can access it on your jail via:
# http://<jail ip>:3000/
# But wouldn't it be nice to access it on
# http://jailhostname.local/
#
# Oneliner to kickstart
# pkg install -y curl && curl --silent https://gist.githubusercontent.com/jack828/b8375b16b6fb9eae52201d4deb563ab7/raw | /bin/sh -s PORT