Bind: Example zone file for website
by rajesh[ Edit ] 2012-05-10 14:49:01
create a zone file named sitename.db in /var/named/
the example content of the file would be like
; Zone file for makitnw.com
$TTL 14400
sitename.com. 86400 IN SOA ns1.sitename.com. emailid.hostname.com. (
2012040601 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)
sitename.com. 86400 IN NS ns1.sitename.com.
sitename.com. 86400 IN NS ns2.sitename.com.
sitename.com. 14400 IN A 192.168.0.1
localhost 14400 IN A 127.0.0.1
sitename.com. 14400 IN MX 0 sitename.com.
mail 14400 IN CNAME sitename.com.
www 14400 IN CNAME sitename.com.
ftp 14400 IN CNAME sitename.com.
cpanel 14400 IN A 192.168.0.1
whm 14400 IN A 192.168.0.1
webmail 14400 IN A 192.168.0.1
webdisk 14400 IN A 192.168.0.1