Hello,
@cPRex! Thanks for your help, but after removing new servers from the DNS cluster and deleting already transferred zones prior to transfer, problem still shows. I'll post an example of how DNS zones resulted:
Original:
Code:
; cPanel first:11.42.1.20 (update_time):1629365890 Cpanel::ZoneFile::VERSION:1.3 hostname:kalel.hoster.tld latest:86.0.40
; Zone file for client.es
$TTL 14400
client.es. 1200 IN SOA ns3.hoster.tld. hoster.gmail.com. (
2021081900 ;Serial Number
4800 ;refresh
3600 ;retry
1209600 ;expire
7200 ;minimum
)
client.es. 1200 IN NS ns3.hoster.tld.
client.es. 1200 IN NS ns1.hoster.tld.
client.es. 1200 IN A %OLD_IP%
localhost 1200 IN A 127.0.0.1
client.es. 1200 IN MX 10 client-es.mail.protection.outlook.com.
www 1200 IN CNAME client.es.
ftp 1200 IN A %OLD_IP%
cpanel 1200 IN A %OLD_IP%
webdisk 1200 IN A %OLD_IP%
whm 1200 IN A %OLD_IP%
webmail 1200 IN A %OLD_IP%
client.es. 1200 IN TXT "v=spf1 +a +mx +ip4:%OLD_IP% +include:outlook.com ~all"
client.es. 1200 IN TXT ms=msXXXXXXXX
cpcalendars 1200 IN A %OLD_IP%
cpcontacts 1200 IN A %OLD_IP%
default._domainkey 1200 IN TXT "v=DKIM1; k=rsa; p=BLAHBLAHBLAH;
_cpanel-dcv-test-record 1200 IN TXT _cpanel-dcv-test-record=BLAHBLAHBLAH
_acme-challenge.mail 1200 IN TXT BLAHBLAHBLAH
client.es. 1200 IN TXT google-site-verification=BLAHBLAHBLAH
After express transfer in original server (authoritative):
Code:
; cPanel first:11.42.1.20 (update_time):1629373888 Cpanel::ZoneFile::VERSION:1.3 hostname:kalel.hoster.tld latest:86.0.40
; Zone file for client.es
$TTL 14400
client.es. 1200 IN SOA ns3.hoster.tld. hoster.gmail.com. (
2021081902 ;Serial Number
4800 ;refresh
3600 ;retry
1209600 ;expire
7200 ;minimum
)
client.es. 1200 IN A %NEW_WEB_IP%
client.es. 1200 IN NS ns5.hoster.tld.
client.es. 1200 IN NS ns3.hoster.tld.
localhost 1200 IN A 127.0.0.1
client.es. 1200 IN MX 10 client-es.mail.protection.outlook.com.
www 1200 IN CNAME client.es.
ftp 1200 IN A %NEW_WEB_IP%
cpanel 1200 IN A %NEW_WEB_IP%
webdisk 1200 IN A %NEW_WEB_IP%
whm 1200 IN A %NEW_WEB_IP%
webmail 1200 IN A %NEW_WEB_IP%
client.es. 1200 IN TXT "v=spf1 +a +mx +ip4:%OLD_IP% +ip4:%NEW_WEB_IP% +include:outlook.com ~all"
client.es. 1200 IN TXT ms=msXXXXXXXX
cpcalendars 1200 IN A %NEW_WEB_IP%
cpcontacts 1200 IN A %NEW_WEB_IP%
default._domainkey 1200 IN TXT "v=DKIM1; k=rsa; p=BLAHBLAHBLAH;
_cpanel-dcv-test-record 1200 IN TXT _cpanel-dcv-test-record=BLAHBLAHBLAH
_acme-challenge.mail 1200 IN TXT BLAHBLAHBLAH
client.es. 1200 IN TXT google-site-verification=BLAHBLAHBLAH
After express transfer in destination server:
Code:
; cPanel first:98.0.5 (update_time):1629373902 Cpanel::ZoneFile::VERSION:1.3 hostname:kendall.hoster.tld latest:98.0.5
; Zone file for client.es
$TTL 14400
client.es. 86400 IN SOA ns3.hoster.tld. hoster.gmail.com. (
2021081904 ;Serial Number
3600 ;refresh
1800 ;retry
1209600 ;expire
86400 )
client.es. 86400 IN NS ns3.hoster.tld.
client.es. 86400 IN NS ns5.hoster.tld.
client.es. 14400 IN A %NEW_MAIL_IP%
client.es. 14400 IN MX 10 mailserver.hoster.tld.
mail 14400 IN CNAME mailserver.hoster.tld.
www 14400 IN CNAME client.es.
ftp 14400 IN A %NEW_MAIL_IP%
default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=BLAHBLAHBLAH;
client.es. 14400 IN TXT "v=spf1 +a +mx +ip4:%NEW_MAIL_IP% ~all"
whm 14400 IN A %NEW_MAIL_IP%
webmail 14400 IN A %NEW_MAIL_IP%
cpcalendars 14400 IN A %NEW_MAIL_IP%
cpanel 14400 IN A %NEW_MAIL_IP%
cpcontacts 14400 IN A %NEW_MAIL_IP%
Result in original server is correct this time but I'm afraid that when we change authoritative server to the new one we're going to get into problems. TTL, MX, Google verifications, nothing is respected. Even IP is not correct, as A is pointing to mail server, instead that to web server.
Also, this is a simpler case, as there is no different IP for mail server involved. I'll try to post one in which %OLD_IP% has to become %NEW_WEB_IP% for A record and %NEW_MAIL_IP% for mail record.
Maybe this could be related to DNS templates. At first, we made a transfer of system config and templates are equal in all servers. May I know how are original DNS templates in fresh installed WHM?