[Bind] Cname and subzone
Heinrich Strauss
heinrich at hstrauss.co.za
Sat Jan 19 15:46:28 UTC 2013
Hi, Jacopo.
On 19/01/2013 17:10, Jacopo Cappelli wrote:
> I have a domain "example.com <http://example.com>" and i need to set a
> cname:
> mycname.example.com <http://mycname.example.com> IN CNAME
> ghs.google.com <http://ghs.google.com>.
>
> But i have a subzone
If you delegate a sub-zone, no other records will be read from the
parent zone file, other than the NS records and glue records for the
hosts to which the subzone is delegated.
The most common way of doing this set-up would be to create records in
the parent zonefile (and not create a subzone). From RFC1912
<http://www.simpledns.com/rfc/rfc1912.txt> section 2.4: /"A CNAME record
is not allowed to coexist with any other data."/ This is especially true
for NS and SOA records, which the subzone would require.
e.g. (for example.com)
-- begin
@ IN SOA ns.example.com. hostmaster.example.com. 2013011900 <defaults>
@ IN NS ns.example.com.
mycname IN MX 10 aspmx1.googlemail.com.
...
mycname IN CNAME ghs.google.com.
-- end
Note that you should include a trailing period if you specify
mycname.example.com (i.e. your example record should read:
mycname.example.com. IN CNAME ghs.google.com.)
Regards,
Strauss.
More information about the bind10-users
mailing list