Skip to content

Instantly share code, notes, and snippets.

@mzpqnxow
Created December 26, 2018 20:45
Show Gist options
  • Save mzpqnxow/a9e38501a73d3dcc049f6290cdd5630a to your computer and use it in GitHub Desktop.
Save mzpqnxow/a9e38501a73d3dcc049f6290cdd5630a to your computer and use it in GitHub Desktop.
Prevent Debian/Ubuntu from using MDNS
#!/bin/bash
# This script assumes a regular user with sudo access
SUDO=sudo
# If this runs as root, use 'SUDO=' and comment the entry above
# SUDO=
for package in avahi-daemon avahi-autoipd libavahi-core7 libavahi-gobject0; do
sudo apt-get purge $package # Get rid of it
sudo apt-mark $package # Mark it so it never comes back again
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment