Skip to content

Instantly share code, notes, and snippets.

@paulc
Last active June 28, 2020 15:00
Show Gist options
  • Save paulc/cdd3aef41f7db57352a57850042cf055 to your computer and use it in GitHub Desktop.
Save paulc/cdd3aef41f7db57352a57850042cf055 to your computer and use it in GitHub Desktop.
mdns-proxy
mdns-proxy() {
: ${1?mdns-proxy target}
dns-sd -P ${1//.*} _http._tcp . 80 ${1//.*}.local $(dig +short $1 | head -1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment