Tuesday, 25 February 2014

Tagged under: , , , , ,

How to Create a zone file for the domain

For example 


Create a zone file for the domain, wareagle.com This zone contains:
a. DNS servers: nsl.wareagle.com, ns2.wareagle.com and ns3.wareagle.com
b. A web server: www.wareagle.com or wareagle.com
c. An email server: mail.wareagle.com
d. A FTP server: ftp.ns.wareagle.com



How can we do that?


We can create the above by this method 

$TTL 86400 ; 24 hours could have been written as 24h or 1d
; $TTL used for all RRs without explicit TTL value
$ORIGIN wareagle.com.
@ 1D IN nsl.wareagle.com. wareagle.com. (
2002022401 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns2.wareagle.com. ; in the domain
IN NS ns3.wareagle.com. ; external to domain
IN MX mail.wareagle.com. ; external mail provider
; server host definitions
ns1 IN A 192.168.0.1 ;name server definition
www IN A www.wareagle.com ;web server definition
ftp IN CNAME ftp.ns.wareagle.com. ;ftp server definition
; non server domain hosts
HOSTA IN A 192.168.0.3
HOSTB IN A 192.168.0.4

0 comments: