Skip to main content

how to remove permanently parked domain.tld.xxx.xxx.xxx.cpanel.site

Comments

10 comments

  • cPRex Jurassic Moderator

    Hey there!  Just to confirm, these are showing up inside WHM >> List Parked Domains?  If so, I've never heard of such a thing but the best tool to remove a list of parked domains would be the cPanel API:

    https://api.docs.cpanel.net/cpanel-api-2/cpanel-api-2-modules-park/cpanel-api-2-functions-park-unpark/

    0
  • pclp19

    hi cPRex

    yes the parked domain on sub menu list parked domains.

    after i try the link and i follow to use command line on that link and the result error like this

    cpapi2 --user=smpn4asbsatap unpark domain=smpn4asembagussatuatap.sch.id subdomain=smpn4asembagussatuatap.sch.id                                .182-253-93-158.cpanel.site
    [2025-04-18 08:54:07 +0700] warn [Internal Warning while parsing unknown 292381] Error loading module unpark - Can't locate C                                panel/unpark.pm in @INC (you may need to install the Cpanel::unpark module) (@INC contains: /usr/local/cpanel /usr/local/cpan                                el/3rdparty/perl/536/cpanel-lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/cpanel-lib /usr/local/cpanel/3rdparty/perl/5                                36/lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/lib /opt/cpanel/perl5/536/site_lib/x86_64-linux /opt/cpanel/perl5/536                                /site_lib) at (eval 2) line 1.
    BEGIN failed--compilation aborted at (eval 2) line 1.
     at /usr/local/cpanel/Cpanel/LoadModule.pm line 27.
            Cpanel::LoadModule::_logger_warn("Error loading module unpark - Can't locate Cpanel/unpark.pm i"...) called at /usr/l                                ocal/cpanel/Cpanel/LoadModule.pm line 170
            Cpanel::LoadModule::_modloader("unpark") called at /usr/local/cpanel/Cpanel/LoadModule.pm line 109
            Cpanel::LoadModule::loadmodule("unpark") called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 44
            Cpanel::Api2::Exec::api2_preexec("unpark", "domain=smpn4asembagussatuatap.sch.id") called at cpanel.pl line 1364
            cpanel::cpanel::docpanelaction(HASH(0x2533e28)) called at cpanel.pl line 4582
            cpanel::cpanel::run_fast_json_mode() called at cpanel.pl line 927
            cpanel::cpanel::script("cpanel::cpanel", "--json-fast-connect", "--stdin") called at cpanel.pl line 324


    ---
    cpanelresult:
      apiversion: 2
      data:
        reason: Could not find function 'domain=smpn4asembagussatuatap.sch.id' in module 'unpark'
        result: 0
      error: Could not find function 'domain=smpn4asembagussatuatap.sch.id' in module 'unpark'
      func: domain=smpn4asembagussatuatap.sch.id
      module: unpark

    i have thousand of cpanel account and the parked domain create automatically. so i need to remove as bulk the parked domain

    do you have another advice?

    0
  • pclp19

    after i check on serveral file configuration for domain i found parked domain.tld.xxx.xxx.xxx.cpanel.site too in /etc/userdatadomains.json so i remove all domain "domain.tld.xxx.xxx.xxx.cpanel.site" and i change "parked" to "main" also i rebuild the httpconf and restart httpd, and now the domain parked all gone.

    can you correct me with i was doing with step by step on i mentioned above that necassary or still need change server file in another location?

    0
  • cPRex Jurassic Moderator

    If you wanted to manually remove the domains you would need to ensure they are removed from:

    -any DNS zones
    -any files in /var/cpanel/userdata

    After adjusting the /var/cpanel/userdata files you would need to run these commands:

    /scripts/updateuserdatacache
    /scripts/updateuserdomains

    which should automatically take care of the data you found in /etc/userdatadomains.

    0
  • pclp19

    hello

    after i check the sub menu list parked domain all parked domain appear again.

    i try to remove from serveral file on i mentioned above and try to update on both /scripts/updateuserdatacache and /scripts/updateuserdomains. the domain back again.

    when i try to remove manually from the menu, the popup show error like below

    Cpanel::DnsUtils::Install::Processor:678: There is no zone file on this system that can contain “default._domainkey.bkpsdmsitubondo.id.182-253-93-158.cpanel.site.”. at /usr/local/cpanel/Cpanel/DKIM/Transaction.pm line 262.
     at /usr/local/cpanel/Cpanel/DKIM/Transaction.pm line 262.
        Cpanel::DKIM::Transaction::_setup_domain_keys_or_warn(Cpanel::DKIM::Transaction=HASH(0x44bc7a8), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ARRAY(0x4312e50), __CPANEL_HIDDEN__, 1) called at /usr/local/cpanel/Cpanel/DKIM/Transaction.pm line 166
        Cpanel::DKIM::Transaction::tear_down_user_domains(Cpanel::DKIM::Transaction=HASH(0x44bc7a8), "bkpsdmsitubondo", ARRAY(0x4312e50)) called at /usr/local/cpanel/Cpanel/ParkAdmin.pm line 231
        Cpanel::ParkAdmin::_local_unpark("parent_domain", "bkpsdmsitubondo.id", "domain", "bkpsdmsitubondo.id.182-253-93-158.cpanel.site", "user", "bkpsdmsitubondo") called at /usr/local/cpanel/Cpanel/ParkAdmin.pm line 86
        Cpanel::ParkAdmin::__ANON__() called at /usr/local/cpanel/Cpanel/LinkedNode/Worker/WHM.pm line 139
        Cpanel::LinkedNode::Worker::WHM::do_on_all_nodes("local_action", CODE(0x3b2adc0), "local_undo", undef, "remote_action", CODE(0x3b2b018)) called at /usr/local/cpanel/Cpanel/LinkedNode/Worker/WHM.pm line 220
        Cpanel::LinkedNode::Worker::WHM::do_on_nodes("remote_action", CODE(0x40bd088), "local_action", CODE(0x3b2adc0), "aliases", ARRAY(0x425b8e0)) called at /usr/local/cpanel/Cpanel/LinkedNode/Worker/WHM.pm line 252
        Cpanel::LinkedNode::Worker::WHM::do_on_all_user_nodes("username", "bkpsdmsitubondo", "local_action", CODE(0x3b2adc0), "remote_action", CODE(0x40bd088)) called at /usr/local/cpanel/Cpanel/ParkAdmin.pm line 102
        Cpanel::ParkAdmin::unpark("user", "bkpsdmsitubondo", "domain", "bkpsdmsitubondo.id.182-253-93-158.cpanel.site", "parent_domain", "bkpsdmsitubondo.id") called at whostmgr/bin/whostmgr2.pl line 3084
        main::unpark("unpark") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 384
        Whostmgr::Dispatch::_do_call("unpark", HASH(0x3b14ec8), HASH(0x3b20ae0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 177
        Whostmgr::Dispatch::dispatch("unpark", 1, ARRAY(0x3b226a8)) called at whostmgr/bin/whostmgr2.pl line 938

    do you have solution for this case?

     

    0
  • cPRex Jurassic Moderator

    I don't - it would be best to create a ticket on this so we can see exactly how so many of these were created.

    0
  • pclp19

    okay, i will create a ticket

    0
  • cPRex Jurassic Moderator

    I'm sorry I can't offer more on my end, but when the usual tools and tricks don't work well, I'd hate to recommend something that could accidentally cause data loss.

    0
  • pclp19

    hello

    can you share thats tricks? this server are fresh install and i dont know the parked domain come to list.  i need solution. i have been open ticket but still not have solution.

    0
  • cPRex Jurassic Moderator

    Can you let me know that ticket number?

    0

Please sign in to leave a comment.