Removing zimbra-dnscache

Ask questions about your setup or get help installing ZCS server (ZD section below).
User avatar
rosch
Advanced member
Advanced member
Posts: 163
Joined: Sat Sep 13, 2014 1:34 am
ZCS/ZD Version: 9.0.0.ZEXTRAS.20220713.UBUNTU20.64

Re: Removing zimbra-dnscache

Post by rosch »

I can confirm that at least for zcs 8.7.1 the following works fine:

Code: Select all

zmdnscachectl stop
zmprov ms `zmhostname` -zimbraServiceEnabled dnscache
zmprov ms `zmhostname` -zimbraServiceInstalled dnscache
zmcontrol stop
zmcontrol start
User avatar
evilside
Advanced member
Advanced member
Posts: 62
Joined: Sat Sep 13, 2014 3:24 am
Location: Chile
ZCS/ZD Version: zcs-8.8.15_GA_3918.UBUNTU14_64

Re: Removing zimbra-dnscache

Post by evilside »

For me this comands working:

Code: Select all

su - zimbra
zmdnscachectl stop
zmprov ms `zmhostname` -zimbraServiceEnabled dnscache
zmprov ms `zmhostname` -zimbraServiceInstalled dnscache
exit
apt-get remove zimbra-dnscache zimbra-dnscache-components zimbra-dnscache-base
su - zimbra
zmcontrol start
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

Re: Removing zimbra-dnscache

Post by indunil75 »

quanah wrote:I never use the admin console...



zmprov gs `zmhostname` zimbraServiceEnabled zimbraServiceInstalled



should show dnscache



You can remove it by doing



zmprov ms `zmhostname` -zimbraServiceEnabled dnscache -zimbraServiceInstalled dnscache



Hope that helps.
yeah, It works for me with zimbra 8.8.11 on Cent OS 7.6.
Thanks
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

Re: Removing zimbra-dnscache

Post by indunil75 »

indunil75 wrote:
quanah wrote:I never use the admin console...



zmprov gs `zmhostname` zimbraServiceEnabled zimbraServiceInstalled



should show dnscache



You can remove it by doing



zmprov ms `zmhostname` -zimbraServiceEnabled dnscache -zimbraServiceInstalled dnscache



Hope that helps.
yeah, It works for me with zimbra 8.8.11 on Cent OS 7.6.
Thanks

this one works as well.

as root

su - zimbra -c 'zmprov ms `zmhostname` -zimbraServiceEnabled dnscache'

su - zimbra

zmcontrol restart
antony
Posts: 1
Joined: Mon Oct 21, 2019 7:10 am

Re: Removing zimbra-dnscache

Post by antony »

zmprov ms `zmhostname` -zimbraServiceEnabled dnscache -zimbraServiceInstalled dnscache
zmcontrol restart

Thanks working fine with out any issue

Tony
Nik
Posts: 20
Joined: Fri Apr 21, 2017 7:14 am

Re: Removing zimbra-dnscache

Post by Nik »

There is no reason to uninstall the dnscache service if the "zmcontrol restart" command asks you for the zimbra password.
I had the same problem after upgrading zimbra from 6.6.15 to 9.0.0 on Centos8.
All you need to fix it is to add the next line to /etc/sudoers.d/02_zimbra_dnscache file :
All you need to fix is ​​add the following line to the /etc/sudoers.d/02_zimbra_dnscache file:

%zimbra ALL=NOPASSWD:/sbin/resolvconf *

I think it is possible to make the same changes on Ubuntu and so on.....
Nik
Posts: 20
Joined: Fri Apr 21, 2017 7:14 am

Re: Removing zimbra-dnscache

Post by Nik »

Must be:
I had the same problem after upgrading zimbra from 8.8.15 to 9.0.0 on Centos8.
Post Reply