Default TTL of MX record
Hello,
The default TTL for MX records was 14,400 in my memory.
Recently, I created a new domain account with a shared ip, then it was 3,600.
Next, I checked the template of "Home " DNS Functions " Edit Zone Templates" at WHM and knew that it was as follows for "standardvirtualftp - Domains on a shared IP address".
<------------------------------ From here
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
3600 ; refresh, seconds
1800 ; retry, seconds
1209600 ; expire, seconds
86400 ) ; minimum, seconds
%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.
%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%
%domain%. IN A %ip%
%domain%. IN AAAA %ipv6%
%domain%. IN MX 0 %domain%.
mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN A %ftpip%
ftp IN AAAA %ipv6%
------------------------------------------------------------------> To here
TTL of MX has been changed from the default 14,400 to 3,600.
I also checked one domain account which was created previously,
It is,
mydomain.com 14400 IN MX 0 mydomain.com
However, the account I created yesterday was,
mydomain2.com 3600 IN MX 0 mydomain.com
So, my inquiry is, "Is TTL of MX record 3600 proper?, Isn't it too short?".
The reason why I ask it is because one of my accounts could not receive the email sent from Gmail.
Error message is "DNS Error: 12967398 DNS type 'mx' lookup of mydomain.com responded with code SERVFAIL "
I guess that the default too short TTL caused MX information acquisition failure.
Was this change of TTL setting to 3600 done by upcp intentionally for some reason?
Any advice would be appreciated.
Thank you.
-
The default TTL is defined within Tweak Settings - and no 3600 seconds is perfectly fine - if you're getting a SERVFAIL, then you're having other issues. I personally run with a TTL of 360 seconds and works perfectly fine, it just generates a lot more DNS queries to the nameservers. 0 -
While I wouldn't necessarily recommend you use 360 like @LucasRolff, 3600 for the TTL is perfectly fine, in fact probably preferable to 14440 for the MX record. If you JUST changed your DNS and one of your accounts couldn't receive mail with that error, it is pretty likely the change hadn't propagated yet, regardless of the TTL, that or there is a separate issue unrelated to the TTL with the DNS as already suggested. 0 -
I'm sorry for the late reply. I have not changed dns.. Actually, I still don't know the difference TTL 3600 from 14400. Why is 3600 better? Doesn't it give an advantage to a hacker to attack the server, so called "DNS Cache Poisining Attack"? At any rate, when I send an email by using gmail server, it returns with an error message of "DNS Error: 12967398 DNS type 'mx' lookup of mydomain.com responded with code SERVFAIL ". I checked mydomain.com by intoDNS 0
Please sign in to leave a comment.
Comments
3 comments