subdomain with domain

Lightner, Jeff JLightner at
Wed Apr 1 19:08:29 UTC 2015

You can do subdomains with the one zone file rather than having separate zones you just have to put a new ORIGIN for the subdomain.

In the domain file for <domain> after the SOA and existing records (NS, A, CNAME etc...) add a line:

$ORIGIN _msdcs.<domain>.        ; New subdomain 
Then add the records (A, CNAME, SRV etc...) that you want for that subdomain.   (You don't need to add SOA, NS etc... unless they're different for the subdomain)

Jeffrey C. Lightner
Sr. UNIX Administrator
DS Services of America, Inc.
2300 Windy Ridge
Suite 600 N
Atlanta, GA  30339
P: 770-933-1400 ext.3516
C: 678-772-0018
F: 678-460-3603
E: jlightner at

-----Original Message-----
From: bind-users-bounces at [mailto:bind-users-bounces at] On Behalf Of Graham Clinch
Sent: Wednesday, April 01, 2015 11:56 AM
To: Jeff Sadowski; bind-users at
Subject: Re: subdomain with domain

> zone "_msdcs.<domain>" {
> [..]
>  file "data/db.";
> };
> zone "<domain>" {
> [..]
>  file "data/db.";
> };

Both zones are being backed by the same file, so one will be overwriting the other.  This may not be the cause of the half-working situation, but it won't be helping.  Do the bind logs (not sure where Fedora puts them though - /var/log/messages?) contain any errors?

Unless <domain> is really '', I would suggest naming your file after the zone that it is going to contain - e.g.

file "data/db._msdcs.<domain>";
file  "data/db.<domain>";

Please visit to unsubscribe from this list

bind-users mailing list
bind-users at

More information about the bind-users mailing list