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: jlight...@dsservices.com

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

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

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 '192.168.1.2', I would suggest naming your file after 
the zone that it is going to contain - e.g.

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

Graham
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to