Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
faith250285
Level 1
Level 1
Posts: 3
Joined: Sat Jun 22, 2019 10:27 am

Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Post by faith250285 » Sat Jun 22, 2019 10:32 am

HI !

i tried to disable the AVAHI DAEMON and DNSMASQ but the entries are missing in the networkmanager.conf file.
Earlier Linux Mint distros had the entries still in the networkmanager.conf file but not so in 19.1.
How can i disable them on Linux Mint 19.1 ?
Could someone shed some light on it please.

Which file to open with sudo gedit cmd ?

Heres a image of the opened networkmanager.conf file. https://suckmypic.nfos.to/qZgfram8.png

DAMIEN1307
Level 7
Level 7
Posts: 1910
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Post by DAMIEN1307 » Sat Jun 22, 2019 11:12 am

here is the code to disable avahi-daemon...i really wouldnt disable dnsmasq...DAMIEN

Code: Select all

sudo systemctl disable avahi-daemon.service
ORDO AB CHAO

faith250285
Level 1
Level 1
Posts: 3
Joined: Sat Jun 22, 2019 10:27 am

Re: Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Post by faith250285 » Sat Jun 22, 2019 11:19 am

i just ran the cmd you posted in your reply using terminal and entering the password when asked.
Do i have to reboot or is it disabled already now ? Heres another pic. https://suckmypic.nfos.to/egnYg2sk.png

Why not disabling DNSMASQ ? Back then when i disabled it it didnt break the DNS or DHCP for me...but i believe i entered the Local IP manually.
Does DNSMASQ just cache the DNS or is it a full DNS Service itself ?

I use the Cloudflare DNS Servers which are at IP 1.1.1.1 and 1.0.0.1. Cant i just disable DNSMASQ when i use cloudflare DNS ?

altair4
Level 19
Level 19
Posts: 9679
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Post by altair4 » Mon Jun 24, 2019 3:31 pm

Remember that systemd is the Windows Registry of the Linux world where everything is interdependent on other things that may not be apparent or obvious.

Disabling a service does not mean that something else can't start it. Such is the case with avahi. If you want to stop avahi and prevent it from being started you have to "mask" it:

Code: Select all

sudo systemctl mask avahi-daemon.service
Then stop it:

Code: Select all

sudo systemctl stop avahi-daemon.service
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

DAMIEN1307
Level 7
Level 7
Posts: 1910
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Linux Mint 19.1 How to turn off AVAHI DAEMON and DNSMASQ

Post by DAMIEN1307 » Mon Jun 24, 2019 3:36 pm

altair4 is correct if you want this to be permanent...DAMIEN
ORDO AB CHAO

Post Reply

Return to “Other networking topics”