Kevin Bailey a écrit : > Hi Guys, > > Just a question RE setting up the DNS zone record correctly for a mail > server. > > I have a couple of setups which work but have just copied one and I'm > getting the following response. > > <j.gilb...@watercooledsurf.com>: Host or domain name not found. Name > service > error for name=watercooledsurf.com type=A: Host found but no data > record of > requested type > > > One zone I have is set up as > > ; Zone: grosvenorchambers.co.uk > ; Generated: Fri Jan 23 14:53:53 2009 > ; > @ IN SOA ns0.dnsmaster.net. > hostmaster.dnsmaster.net. ( > 2008110301 43200 1800 604000 86400 ) > > IN NS ns1.dnsmaster.net. > IN NS ns2.dnsmaster.net. > IN NS ns3.dnsmaster.net. > > grosvenorchambers.co.uk. IN MX 10 > mail2.freewayprojects.com. > ftp IN CNAME ftp2.freewayprojects.com. > mail IN CNAME mail2.freewayprojects.com. > smtp IN CNAME smtp2.freewayprojects.com. > webmail IN CNAME webmail2.freewayprojects.com. > www IN CNAME web2.freewayprojects.com. > > > > And another is set up as > > ; Zone: firetecworld.com > ; Generated: Fri Jan 23 14:54:29 2009 > ; > @ IN SOA ns0.dnsmaster.net. > hostmaster.dnsmaster.net. ( > 2008081001 43200 1800 604800 86400 ) > > IN NS ns1.dnsmaster.net. > IN NS ns2.dnsmaster.net. > IN NS ns3.dnsmaster.net. > IN MX 10 mail.firetecworld.com. > IN A 212.84.168.98 > > ftp IN CNAME ftp2.freewayprojects.com. > mail IN CNAME mail2.freewayprojects.com. > smtp IN CNAME smtp2.freewayprojects.com. > webmail IN CNAME webmail2.freewayprojects.com. > www IN CNAME web2.freewayprojects.com. >
wrong. the MX should not be a cname. see http://www.rfc-ignorant.org/policy-bogusmx.php use IN MC 10 mail2.freewayprojects.com. instead. > > > > In both cases I am trying to keep them set up so that if the main server > fails I can then repoint mail2.freewayprojects.com, > smtp2.freewayprojects.com, web2.freewayprojects.com etc to the > secondary/backup server and the service will continue. I.e. I won't > have to change all the clients DNS records - just the > *2.freewayprojects.com IP addresses. > > > > I tried initially to copy the first one. > > What is the best/canonical way for setting up DNS reocrds? > > We have www happily CNAME'd to the web server address. Similarly for > mail, ftp, smtp, webmail etc. The mail should just need an MX record. > Does the mail need an 'A' record of some sort? > yes, use A records instead of CNAME. you can generate the zone file using a script.