Correct Syntax for NS and MX records in Zone File

Barry Margolin barmar at alum.mit.edu
Tue Jul 19 01:11:04 UTC 2005


In article <dbhhme$jsh$1 at sf1.isc.org>, Kenneth Roberts <kr at macoby.com> 
wrote:

> Hello all,
> 
>     I am trying to setup a correct zone file, and after reading  Albitz 
> & Liu cover to cover, there are a couple of basic concepts that I don't 
> understand. They revolve around naming rules for NS and MX records.
> 
>         As for NS records, are these entires proper?  The domain name 

Yes, they're perfect.

> for the zone is master.com. The host names for the nameservers are 
> maud-a, and maud-b.  Do you have to append the master.com domain name to 
> the nameservers, or can you use another domain name outside the zone.

No, the nameservers and mail servers can be in any domain.  The only 
requirement is that these names have A records (they shouldn't be 
aliases).

> ;
> ;
> ;    NAME SERVERS
> ;
> ;
> master.com.            IN   NS maud-a.sawsa.com.
> master.com.            IN   NS maud-b.zzip.com.
> ;
> ;
>     The same question with MX records.
> 
> 
> 
> ;    MX RECORDS
> ;
> master.com.                IN   MX      10    cuda-1.theibn.com.
> master.com.                IN   MX      30    cuda-2.ibnto.com.
> 
> Thank you for your assistance.
> 
> 
> kr

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***



More information about the bind-users mailing list