Redefine a DNS zone by creating an individual zone for subdomains

Luana Premoli

Well-Known Member
Oct 3, 2016
59
6
8
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:
[[email protected] ~]# 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
[[email protected] ~]#

Code:
[[email protected] ~]# 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:
[email protected] [~]# grep '' /usr/local/cpanel/version
11.70.0.62
[email protected] [~]#
[email protected] [~]# named -version
BIND 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.5
[email protected] [~]#
[email protected] [~]# 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
[email protected] [~]#


Code:
[[email protected] ~]# grep '' /usr/local/cpanel/version
11.70.0.62
[[email protected] ~]#
[[email protected] ~]# named -version
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)
[[email protected] ~]#
[[email protected] ~]# 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
[[email protected] ~]#

Can you help us?

Thanks
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
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!