DNS zone file issues - help needed
This is how i configure each domain's zone file, is this correct or do i need to change/alter something?------------------------------------------------------
domain.com. IN SOA ns.mydns.com. webmaster.domain.com. (
1030701222
10800
3600
432000
38400 )
domain.com. IN NS ns.mydns.com.
domain.com. IN NS ns2.mydns.com.
domain.com. IN A xxx.xxx.xxx.xxx
smtp.domain.com. IN CNAME domain.com.
www.domain.com. IN CNAME domain.com.
ftp.domain.com. IN CNAME domain.com.
pop.domain.com. IN CNAME domain.com.
domain.com. IN MX 1 pop.domain.com.
------------------------------------------------------
I just make the CNAME entries for the heck of it since i wrote a shell script long time back and never altered it, my first server provider told me that i should create the cname as it a default practise!
I get one DNS error for each domain in /var/log/messages which is;
dns_master_load: /var/named/domain.com.hosts:1: no TTL specified. THIS ZONE WILL NO LONGER WORK IN FUTURE VERSIONS. Add a TTL.
Where do i add a TTL? Is it a static value or variable?
Where do i append/alter the value in the above zone file?
If it is static value then i may just alter the shell script which i use to create the dns file.
Also, is the SOA serial number correct? i.e. 1030701222 above?
I understand no two zone files can have similar SOA and are unique, is this correct?
I use the following formula in my shell script to generate the SOA serial number which a friend told me years ago;
date +%s
Although in my years of hosting i have not had a dns issue on this server but the TTL error mentioned above bothers me.
Also i get a number of warnings when i check my domain at dnreports.com.
Experts pls comment.