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!

Redefine a DNS zone by creating an individual zone for subdomains

Discussion in 'Bind/DNS/Nameserver' started by Luana Premoli, Dec 14, 2018.

Tags:
  1. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    When click to Reset a DNS zone through the WHM control panel for any domain that has a subdomain registered, the panel is creating a separate DNS zone for the subdomain and this makes the subdomain inaccessible.

    The subdomain returns only after remove the individual DNS ZONE that was created.


    Domain: example.com
    Subdomain: suba.example.com
    Subdomain: subb.example.com


    Code:
    [root@br940 ~]# egrep resetzone /usr/local/cpanel/logs/access_log | egrep example.com
    179.108.xxx.xxx - root [12/14/2018:17:58:07 -0000] "GET /cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts/resetzonelist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:10 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:07 -0000] "GET /cpsess1647746489/json-api/get_update_availability?api.version=1 HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:11 -0000] "GET /cpsess1647746489/scripts2/doresetzone?domain=example.com HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:12 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/doresetzone?domain=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:10 -0000] "GET /cpsess1647746489/json-api/get_update_availability?api.version=1 HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/doresetzone?domain=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:58:13 -0000] "GET /cpsess1647746489/scripts/editdnslist HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/doresetzone?domain=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:17:59:51 -0000] "GET /cpsess1647746489/scripts/resetzonelist HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts/killdns?killdns=subb.example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:00:19 -0000] "GET /cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts/resetzonelist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:00:30 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:00:04 -0000] "GET /cpsess1647746489/json-api/get_update_availability?api.version=1 HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:00:31 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:00:46 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:01:01 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:01:16 -0000] "GET /cpsess1647746489/json-api/loadavg HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    179.108.xxx.xxx - root [12/14/2018:18:01:35 -0000] "GET /cpsess1647746489/scripts/editdnslist HTTP/1.1" 200 0 "https://example.net:2087/cpsess1647746489/scripts2/resetzone?domain=example.com&domainselect=example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" "s" "-" 2087
    [root@br940 ~]#
    

    Code:
    [root@br940 ~]# search_cpanel -s dns -u root
    
    [!] Loading definitions..
    [*] Searching for known definitions in access logs...
    Fri Dec 14 15:58:38 2018 - 179.108.xxx.xxx - root - DNS: Deleted dns zone for suba.example.com
    Fri Dec 14 15:58:46 2018 - 179.108.xxx.xxx - root - DNS: Deleted dns zone for subb.example.com
    


    This occurs on two different servers


    Code:
    root@srv234 [~]# grep '' /usr/local/cpanel/version
    11.70.0.62
    root@srv234 [~]#
    root@srv234 [~]# named -version
    BIND 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.5
    root@srv234 [~]#
    root@srv234 [~]# cat /etc/[A-Za-z]*[_-][rv]e[lr]*
    CentOS release 6.10 (Final)
    CentOS release 6.10 (Final)
    CentOS release 6.10 (Final)
    cpe:/o:centos:linux:6:GA
    root@srv234 [~]#
    
    


    Code:
    [root@br940 ~]# grep '' /usr/local/cpanel/version
    11.70.0.62
    [root@br940 ~]#
    [root@br940 ~]# named -version
    BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)
    [root@br940 ~]#
    [root@br940 ~]# cat /etc/[A-Za-z]*[_-][rv]e[lr]*
    CentOS Linux release 7.6.1810 (Core)
    Derived from Red Hat Enterprise Linux 7.6 (Source)
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"
    
    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"
    
    CentOS Linux release 7.6.1810 (Core)
    CentOS Linux release 7.6.1810 (Core)
    cpe:/o:centos:centos:7
    [root@br940 ~]#
    

    Can you help us?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Luana Premoli, Dec 14, 2018
    Last edited by a moderator: Dec 14, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli

    This is a known issue we had a case open for CPANEL-21679 - this was fixed in version 74 of cPanel/WHM. I noticed in your output you're running v70 which is the LTS version and supported but the fix hasn't been applied to that version as of yet though it is planned.

    The only solution right now is to update to v74 or wait for the fix to be applied to v70 though I can't tell you specifically when that will be.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    We upgraded to version 78 and the problem described above no longer occurs.

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren 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