Split View Problems.

Barry Margolin barmar at genuity.net
Wed Jan 17 22:31:31 UTC 2001


In article <94552r$iu8 at pub3.rc.vix.com>,
Oulman, Jamie <JOulman at iphrase.com> wrote:
>
>Sorry is that was clarified enough. Basicly heres my problem. 
>
>I need to be able to have some hosts from blah.com. Be resolvable by a
>select few ip ranges. I know its possible to do this with subdomains. But it
>all has to be from the same domain. Ive tryed to setup 2 seperate zones with
>the desired records. But. I'm not sure if you can have 2 zones with the same
>@. 
>Is this possible?

What does "2 zones with the same @" mean?  @ is just an abbreviation for
the current $ORIGIN, which defaults to the zone name.  You can't have the
same @ in two different zones, since zones can't overlap.  In your example
zones below, @ in one will be internal.blah.com, @ in the other will be
external.blah.com.  Everything in a db file has to be in the zone that was
specified in the named.conf entry that loads that file.  So you'll have
something like:

zone "internal.blah.com"
  type master;
  file "db.internal";
  allow-query { internal_addresses; };
};

zone "external.blah.com"
  type master;
  file "db.external";
  allow-query { any; };
};

Everything in db.internal will be in the internal.blah.com domain, while
everything in db.external will be in the external.blah.com domain.

>
>-----Original Message-----
>From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
>Behalf Of Barry Margolin
>Sent: Wednesday, January 17, 2001 2:27 PM
>To: comp-protocols-dns-bind at moderators.isc.org
>Subject: Re: Split View Problems.
>
>
>In article <944ra3$fk1 at pub3.rc.vix.com>,
>Oulman, Jamie <JOulman at iphrase.com> wrote:
>>
>>Is there a way to do split views of the same domain names? ie. an internal
>>and external view of blah.com.
>>I setup 2 zones. internal.blah.com and external.blah.com and included the
>>desired info in each. But bind wont take the same root domain in both
>files.
>>It chokes and I'm left here. 
>
>What do you mean by "won't take the same root domain"?  You don't put root
>domain info in a zone db file, root server info goes in the hints file.  I
>think you're going to have to be more explicit than "it chokes" -- what
>errors are you getting?  Maybe you should post your named.conf and db
>files.
>
>-- 
>Barry Margolin, barmar at genuity.net
>Genuity, Burlington, MA
>*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
>Please DON'T copy followups to me -- I'll assume it wasn't posted to the
>group.
>
>
>
>


-- 
Barry Margolin, barmar at genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list