Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disable (KEEP DNS ZONE)

Discussion in 'General Discussion' started by MarceloKonrath, Mar 11, 2018.

  1. MarceloKonrath

    MarceloKonrath Active Member

    Joined:
    Jun 8, 2013
    Messages:
    31
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello

    is there any way to disable KEEP DNS ZONE?

    I have used cPanel for 13 years and have never found a way to disable it.

    The problem occurs because many resellers check this option when they remove an account and after they can not re-create the same account.

    This generates a lot of unnecessary support.

    Thank you
    Marcelo
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    It's currently not possible to prevent this option from appearing in the WHM UI when a reseller terminates an account. I encourage you to open a feature request for the ability to exclude this option from appearing in WHM for resellers:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,772
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    I've often wondered what the point of the "Keep DNS" option is in the WHM. When is deleting an account and keeping the DNS record applicable? For the 1 or 2 times out of ever 1000 times it might have an application (which I still don't know what that is), just delete everything, including the DNS, and Add the DNS entry back.

    The best solution we have found is to just disable the Keep DNS checkbox.

    Using the patch file attached, run the command:

    patch -p0 < disablekeepdns.patch

    Basically this changes line 216 of the file /usr/local/cpanel/whostmgr/docroot/templates/killacct/views/RemoveView.ptt from:

    <input id="checkbox-keepdns-{{ account.username }}" type="checkbox" ng-model="account.keep_dns"></input>

    to

    <input id="checkbox-keepdns-{{ account.username }}" type="checkbox" ng-model="account.keep_dns" disabled="disabled"></input>

    You can make a request in the feature section, but it always takes too long for things to get accomplished there for me.
     

    Attached Files:

  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    It's primarily utilized when migrating an account from one server to another when both servers are part of the same DNS cluster.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    37
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Nice workaround. Any advice for the opposite (i.e. pre-selected checkbox to keep DNS)?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,772
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    You would add

    checked="checked"

    to this input element

    <input id="checkbox-keepdns-{{ account.username }}" type="checkbox" ng-model="account.keep_dns" checked="checked"></input>
     
    RadWebHosting likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice