subdomain with domain

Bob Harold rharolde at umich.edu
Thu Apr 2 20:43:46 UTC 2015


Jeff,
   That only works on the master zone server, without dynamic updates.  Any
slave zones or zones with dynamic updates will have problems because the
zone file will be overwritten with one zone each time it is updated.



-- 
Bob Harold
hostmaster, UMnet, ITcom
Information and Technology Services (ITS)
rharolde at umich.edu
734-647-6524 desk

On Wed, Apr 1, 2015 at 3:08 PM, Lightner, Jeff <JLightner at dsservices.com>
wrote:

> 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 dsservices.com
>
> -----Original Message-----
> From: bind-users-bounces at lists.isc.org [mailto:
> bind-users-bounces at lists.isc.org] On Behalf Of Graham Clinch
> Sent: Wednesday, April 01, 2015 11:56 AM
> To: Jeff Sadowski; bind-users at 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 at 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 at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20150402/f52b2a9d/attachment-0001.html>


More information about the bind-users mailing list