Page 1 of 2

Removing zimbra-dnscache

Posted: Wed Sep 17, 2014 2:23 pm
by jwaters@fisherthompson.com
I installed zimbra-dnscache and have bind running on this server.  I'm trying to disable dnscache and can't figure out how.  I tried apt-get remove zimbra-dnscache, whiched removed the program, but zimbra still wants to try to start it.  Thanks.

Removing zimbra-dnscache

Posted: Wed Sep 17, 2014 2:37 pm
by quanah
You'll need to edit the installed/enabled services list for the server to remove dnscache as well. Generally, removing packages outside of the installer is not well supported.

Removing zimbra-dnscache

Posted: Wed Sep 17, 2014 2:40 pm
by jwaters@fisherthompson.com
Where is that in 8.5? I was looking for a checkbox to uncheck but I don't see that in 8.5 under this server or the global settings.

Removing zimbra-dnscache

Posted: Wed Sep 17, 2014 2:45 pm
by jwaters@fisherthompson.com
Just to be clear, I went to configure, servers, clicked my server and then clicked services. I don't have a DNS Cache in that list.

Removing zimbra-dnscache

Posted: Wed Sep 17, 2014 5:23 pm
by quanah
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.

Removing zimbra-dnscache

Posted: Thu Sep 18, 2014 4:04 am
by vaarsn
It doesn't work for me as well. This is what I did before (under zimbra user):

# zmdnscachectl stop
# zmprov ms `zmhostname` -zimbraServiceEnabled dnscache
# zmprov ms `zmhostname` -zimbraServiceInstalled dnscache
# zmcontrol stop

But after restarting via
# zmcontrol restart

I'm getting the next:

Host mail.myhost.com
        Stopping vmware-ha...Done.
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...[sudo] password for zimbra:


For some reason it still asks me for some sudo password. How to remove this staff completely?

Removing zimbra-dnscache

Posted: Thu Sep 18, 2014 6:57 am
by jwaters@fisherthompson.com
I did what quanah did and that took care of it for me. I did /etc/init.d/zimbra restart and everything stopped and started fine. Thank you. Vaarsn, Do you still have the zimbra-dnscache package installed? When I uninstalled that is when I ran into the sudo issues.

Removing zimbra-dnscache

Posted: Tue Oct 27, 2015 5:25 am
by Arunmani Murugan
Hi,



I am facing the same issue .. while restart zimbra dnscache service it asking for sudo and zimbra password.

pls can you share the steps what you did to remove dnscache completely.



Thanks in Advance..

Removing zimbra-dnscache

Posted: Tue Oct 27, 2015 1:02 pm
by phoenix
Arunmani Murugan wrote:I am facing the same issue .. while restart zimbra dnscache service it asking for sudo and zimbra password.
pls can you share the steps what you did to remove dnscache completely.
If you read the rest of this thread you will find details on how to disable and remove the required service.

Removing zimbra-dnscache

Posted: Tue Oct 27, 2015 11:43 pm
by Arunmani Murugan
Dear Phoenix,



Thanks for your response.



I did,

zmdnscachectl stop

zmprov ms `zmhostname` -zimbraServiceEnabled dnscache -zimbraServiceInstalled dnscache

zmcontrol restart



after removing dnscache i dont see dnscache in installed and enabled service list but while restart zimbra using `zmcontrol restart` I am asking for sudo and zimbra password but it is just fine while restart with /etc/init.d/zimbra restart.



I am using ,

[zimbra@mail ~]$ zmcontrol -v

Release 8.5.1_GA_3056.RHEL7_64_20141103151515 RHEL7_64 FOSS edition.