cPanel domanins migrated don't work after some time

SYSTEM INFORMATION
OS type and version Debian 12
Virtualmin version 7.30.8

After 1 week after migrating some cpanel domains to webmin stop working.

All the migrated domains stoped working and it seems to be a dns problem.

All the domains report dns loop detected on mxtoolbox.

Help!!

Is 49.x.x.x where they DNS is located?

yes … and when i try the domain i receive that the host was not found on the virtualmin server …

Well, I can dig ns1 and ns2:

;; ANSWER SECTION:
ns1.275.ro.             300     IN      A       49.13.197.12

;; ANSWER SECTION:
ns2.275.ro.             300     IN      A       49.13.197.120

Yes i know the ns1 and ns2 can be dig and have the same ip(ip of the virtualmin).
Here is the dns file for the domain globalmoney.ro

; cPanel first:110.0.23 (update_time):1742124882 Cpanel::ZoneFile::VERSION:1.3 hostname:nvme101.namebox.ro latest:124.0.30
; Zone file for globalmoney.ro
$TTL 3600
globalmoney.ro.	IN	SOA	ns1.275.ro. root.ns1.275.ro. (
			2025042812
			3600
			1800
			1209600
			86400 )
globalmoney.ro.	3600s	IN	NS	ns1.275.ro.
globalmoney.ro.	3600s	IN	NS	ns2.275.ro.
globalmoney.ro.	3600s	IN	A	49.13.197.120
globalmoney.ro.	14400	IN	MX	0 globalmoney.ro.
mail.globalmoney.ro.	14400	IN	CNAME	globalmoney.ro.
www.globalmoney.ro.	14400	IN	CNAME	globalmoney.ro.
ftp.globalmoney.ro.	14400	IN	A	49.13.197.120
globalmoney.ro.	14400	IN	TXT	"v=spf1 a:globalmoney.ro ip4:49.13.197.120 +mx +a +ip4:148.251.240.113 ?all"
localhost.globalmoney.ro.	IN	A	127.0.0.1
webmail.globalmoney.ro.	IN	A	49.13.197.120

This problem is for all the domains that was migrated from cpanel to virtualmin. The virtual domains that was new created work just fine.

Did bind stop on your machine?

No, the bind work, the dns work for all the domains that are manualy created. The dns don’t to work for all the domains that was migrated from cpanel 1 week ago.

Hmm… Earlier this command failed.
dig @ns2.275.ro ns2.275.ro
but doing it by address worked. Now it works. Ping is now resolving an address.
mit@~:ping ns2.275.ro PING ns2.275.ro (49.13.197.120) 56(84) bytes of data.
Not sure if my local arp cache got populated?

Idk how to debug further … and what is the cause that the dns stoped resolving …

I found that in logs:
zone globalmoney.ro/IN: loading from master file /var/lib/bind/globalmoney.ro.hosts failed: permission denied
maybe this command will repair the dns for all the domains?

sudo chown -R bind:bind /var/lib/bind/
sudo find /var/lib/bind/ -type f -exec chmod 644 {} \;
1 Like

I resolved for all the domains with this:

sudo chown root:bind /var/lib/bind/*.hosts
sudo chmod 664 /var/lib/bind/*.hosts

1 Like

I wondered why your zone files said ‘cPanel’. Knowing nothing about the Virtualmin migration script I puzzled at, but didn’t question, the cPanel reference in the zone file screen shot. I take it you manually copied them over? Asking to clarify if this was an error in the script.

The migration was made with the virtualmin tool from a full backup from cPanel.

@Ilia Any idea why the script didn’t work out of the box here?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.