Hi I'm a newbie in this forum but I see few topics for mass ttl and serial number changes so I try to do that for me but there is a problem.
What I do:
1. Log on the server as root via SSH
2. cp -a /var/named/ /var/named-backup
3. cd /var/named
4. perl -pi.bak -e "s/14400/60/g" *.db
5. perl -pi.bak -e "s/86400/60/g" *.db
6. sed -i s/'[0-9]\{10\}'/`date +%Y%m%d%H`/ /var/named/*.db
7. rndc reload
8. service named restart
After that I check a random .db file in /var/named . The file is for domain domain.bg and everything looks good.
Also I check DNS zone for this domain in WHM and there everything looks good again (see the attachment). After all check I make a 3rd check via terminal on my computer and few other computers but there is a problem with TTL. When I run "dig domain.bg" the result is not what I expect.
I think my network may had a cache and check from other of our servers and the result is the same. After that I make a check from /http://www.dnsqueries.com/en/domain_check.php here and the result is the same.
So where is the problem?
I look at these topic before intervention:
http://forums.cpanel.net/f5/guide-transferring-all-accounts-new-server-18294.html
http://forums.cpanel.net/f5/how-incremental-serial-number-dns-zone-211732.html
Also few other topics from this forum and other forums.
Best regards,
Mirchev Ideas Team
What I do:
1. Log on the server as root via SSH
2. cp -a /var/named/ /var/named-backup
3. cd /var/named
4. perl -pi.bak -e "s/14400/60/g" *.db
5. perl -pi.bak -e "s/86400/60/g" *.db
6. sed -i s/'[0-9]\{10\}'/`date +%Y%m%d%H`/ /var/named/*.db
7. rndc reload
8. service named restart
After that I check a random .db file in /var/named . The file is for domain domain.bg and everything looks good.
Code:
; cPanel first:11.34.0.11 (update_time):2014031309 Cpanel::ZoneFile::VERSION:1.3 hostname:schost1.serverdomain.com latest:11.36.0.11
; Zone file for domain.bg
$TTL 60
domain.bg. 60 IN SOA ns1-70-82.superdnsserver.net. manager.someotherdomain.com. (
2014031309 ;Serial Number
60 ;refresh
7200 ;retry
3600000 ;expire
60 ;minimum
)
domain.bg. 60 IN NS ns1-70-82.superdnsserver.net.
domain.bg. 60 IN NS ns2-70-82.superdnsserver.net.
domain.bg. 60 IN A 193.107.70.82
localhost 60 IN A 127.0.0.1
www 60 IN CNAME domain.bg.
ftp 60 IN A 193.107.70.82
cpanel 60 IN A 193.107.70.82
whm 60 IN A 193.107.70.82
webdisk 60 IN A 193.107.70.82
webmail 60 IN A 91.215.216.58
default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDX7bbaE6IP1yUcZ7f8NsQVzVB6DPUAoVwwysDMjJ2XA426RA1tSYLy60sjbgNS+DXjQYMLVh+LHP7u6PCMrQ8hfBEV7nxx09hI9DhM0NXnmnGt8CKoiWahkQcsvjRLFO5odvOnpqCWUfINHZ8AUC2D7bD9s7nSv9eD6zZh+T2yYwIDAQAB;"
crm 60 IN A 91.215.216.58
domain.bg 60 IN MX 0 mail.domain.bg.
mail 60 IN A 91.215.216.58
Code:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> domain.bg
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21100
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;domain.bg. IN A
;; ANSWER SECTION:
balkanbeauty.bg. 14400 IN A 193.107.70.82
;; AUTHORITY SECTION:
domain.bg. 86400 IN NS ns2-70-82.superdnsserver.net.
domain.bg. 86400 IN NS ns1-70-82.superdnsserver.net.
;; ADDITIONAL SECTION:
ns1-70-82.superdnsserver.net. 636 IN A 193.107.70.82
ns2-70-82.superdnsserver.net. 636 IN A 193.107.70.82
;; Query time: 0 msec
;; SERVER: 195.191.148.254#53(195.191.148.254)
;; WHEN: Thu Mar 13 10:48:50 2014
;; MSG SIZE rcvd: 147
So where is the problem?
I look at these topic before intervention:
http://forums.cpanel.net/f5/guide-transferring-all-accounts-new-server-18294.html
http://forums.cpanel.net/f5/how-incremental-serial-number-dns-zone-211732.html
Also few other topics from this forum and other forums.
Best regards,
Mirchev Ideas Team
Attachments
-
91.9 KB Views: 4