HI all, I am totally stuck creating a zone file for a domain. This is the first time I have had to do this and I am a bit confused. Basically, the name servers for the domain to be hosted are ns1.myhost.com and ns2.myhost.com The domain I am to setup is domaintohost.com Is the following correct if I want to point web for the domain to xxx.xxx.xxx.11 ? and mail to mail.myhost.com ??? I also want the domain to work if I do either of http://domantohost.com or http://www.homaintohost.com. Can anyone point me in the direction of any changes i need to make for this work ? ;domaintohost.com. $TTL 86400 @ IN SOA ns1.myhost.com. postmaster.domaintohost.com. ( 2004100301 ; serial 7200 ; refresh 3600 ; retry 1209600 ; expire 86400) ; default_ttl IN NS ns1.myhost.com. IN NS ns2.myhost.com. domaintohost.com IN A xxx.xxx.xxx.11 domaintohost.com. IN MX 10 mail.myhost.com. domaintohost.com. IN MX 20 mail2.myhost.com. www IN CNAME domaintohost.com ;EOF Thanks for any help Rich
Richard Curtis writes:
Can anyone point me in the direction of any changes i need to make for this work ?
;domaintohost.com. $TTL 86400 @ IN SOA ns1.myhost.com. postmaster.domaintohost.com. ( 2004100301 ; serial 7200 ; refresh 3600 ; retry 1209600 ; expire 86400) ; default_ttl IN NS ns1.myhost.com. IN NS ns2.myhost.com.
Up to here all is well, but you should add the following: IN A xxx.xxx.xxx.11 IN MX 10 mail.myhost.com. IN MX 20 mail2.myhost.com.
domaintohost.com IN A xxx.xxx.xxx.11 domaintohost.com. IN MX 10 mail.myhost.com. domaintohost.com. IN MX 20 mail2.myhost.com.
Delete these three above.
www IN CNAME domaintohost.com
This is ok, or you can substitute it with the following: www IN A xxx.xxx.xxx.11 Also, make sure that myhost.com, mail.myhost.com, mail2.myhost.com and ns1.myhost.com are resolvable by some other name server. -Ti
participants (2)
-
Richard Curtis
-
ti@amb.org