How to disable mDNS broadcasts from Linux systems

Multicast DNS is very useful for finding computers and shared services on your local network. In some situations, like when using an untrusted network or cloud provider’s network, you may want to remain hidden or quiet down your system. Here is how to disable mDNS on CentOS, Fedora, and Ubuntu.