about resolving on a child zone

2009-04-13 Thread Tech W.

hello,


I have the domain saying it's example.com.
I defined a NS (and its A rcd) as below:

my.example.com.  IN  NS  mydns.example.com.
mydns.example.com.  IN  A  11.22.33.44


Also I added this A record in both main DNS and the child zone's DNS 
(mydns.example.com).

www.my.example.com.  IN  A  55.66.77.88


When I query for www.my.example.com, who will respond for it? the main DNS or 
that mydns?

Can I set only www.my.example.com in main DNS while not in mydns?

Thanks for your kind helps.

Regards.



  The new Internet Explorer 8 optimised for Yahoo!7: Faster, Safer, Easier.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: about resolving on a child zone

2009-04-13 Thread Chris Buxton

On Apr 13, 2009, at 6:28 AM, Tech W. wrote:

hello,


I have the domain saying it's example.com.
I defined a NS (and its A rcd) as below:

my.example.com.  IN  NS  mydns.example.com.
mydns.example.com.  IN  A  11.22.33.44


Also I added this A record in both main DNS and the child zone's DNS  
(mydns.example.com).


www.my.example.com.  IN  A  55.66.77.88


When I query for www.my.example.com, who will respond for it? the  
main DNS or that mydns?


Can I set only www.my.example.com in main DNS while not in mydns?


You should try it and see what happens. Use named-checkzone to check  
both copies of the zone for errors.


In this case, the answer is that your main zone (example.com) will  
have an error, because it will have an A record below the "bottom" of  
the zone that is not a glue record. In other words, it will recognize  
that www.my.example.com belongs to my.example.com, not to example.com.


Chris Buxton
Professional Services
Men & Mice

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


Re: about resolving on a child zone

2009-04-13 Thread Tech W.



--- On Tue, 14/4/09, Chris Buxton  wrote:

> From: Chris Buxton 
> Subject: Re: about resolving on a child zone

> 
> In this case, the answer is that your main zone
> (example.com) will have an error, because it will have an A
> record below the "bottom" of the zone that is not a glue
> record. In other words, it will recognize that
> www.my.example.com belongs to my.example.com, not to
> example.com.
> 

Thanks Chris for the good info.
How about this case below?

my.example.com.  IN  NS  ns.my.example.com.
ns.my.example.com.  IN  A  11.22.33.44


Under this case, the A record for ns.my.example.com. will be defined in main 
DNS or "ns.my.example.com" or both?

Thanks again.
Regards.



  Enjoy a better web experience. Upgrade to the new Internet Explorer 8 
optimised for Yahoo!7. Get it now.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: about resolving on a child zone

2009-04-13 Thread Chris Buxton

On Apr 13, 2009, at 5:29 PM, Tech W. wrote:

--- On Tue, 14/4/09, Chris Buxton  wrote:


From: Chris Buxton 
Subject: Re: about resolving on a child zone




In this case, the answer is that your main zone
(example.com) will have an error, because it will have an A
record below the "bottom" of the zone that is not a glue
record. In other words, it will recognize that
www.my.example.com belongs to my.example.com, not to
example.com.



Thanks Chris for the good info.
How about this case below?

my.example.com.  IN  NS  ns.my.example.com.
ns.my.example.com.  IN  A  11.22.33.44


Under this case, the A record for ns.my.example.com. will be defined  
in main DNS or "ns.my.example.com" or both?


Both. This is a glue record, which is a special case.

Chris Buxton
Professional Services
Men & Mice

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


Re: about resolving on a child zone

2009-04-13 Thread Barry Margolin
In article ,
 "Tech W."  wrote:

> --- On Tue, 14/4/09, Chris Buxton  wrote:
> 
> > From: Chris Buxton 
> > Subject: Re: about resolving on a child zone
> 
> > 
> > In this case, the answer is that your main zone
> > (example.com) will have an error, because it will have an A
> > record below the "bottom" of the zone that is not a glue
> > record. In other words, it will recognize that
> > www.my.example.com belongs to my.example.com, not to
> > example.com.
> > 
> 
> Thanks Chris for the good info.
> How about this case below?
> 
> my.example.com.  IN  NS  ns.my.example.com.
> ns.my.example.com.  IN  A  11.22.33.44
> 
> 
> Under this case, the A record for ns.my.example.com. will be defined in main 
> DNS or "ns.my.example.com" or both?

There's a special exception made for "glue" records, since they're 
needed to prevent an infinite recursion.  The parent zone will include 
this A record.

-- 
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: about resolving on a child zone

2009-04-14 Thread Jeff Pang


>  Original Message 
> Subject: Re: about resolving on a child zone
> From: Chris Buxton 
> Date: Mon, April 13, 2009 10:31 am
> To: Tech W. 
> Cc: bind-users@lists.isc.org

> 
> In this case, the answer is that your main zone (example.com) will  
> have an error, because it will have an A record below the "bottom" of  
> the zone that is not a glue record. In other words, it will recognize  
> that www.my.example.com belongs to my.example.com, not to example.com.
> 

Chris,

You said main zone will get an error b/c it has that an A record below
the bottom of the zone.
Is it correct if that A record was on the top of the zone? like:

www.my.example.com.  IN A  11.22.33.44
my.example.com.  IN NS  ns.my.example.com.
ns.my.example.com.  IN A  55.66.77.88

Thanks too.
Regards.


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


Re: about resolving on a child zone

2009-04-14 Thread Tech W.

Thanks for chris, barry and all.

--- On Tue, 14/4/09, Barry Margolin  wrote:


> 
> There's a special exception made for "glue" records, since
> they're 
> needed to prevent an infinite recursion.  The parent
> zone will include 
> this A record.



  Enjoy a safer web experience. Upgrade to the new Internet Explorer 8 
optimised for Yahoo!7. Get it now.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: about resolving on a child zone

2009-04-14 Thread Chris Buxton

On Apr 14, 2009, at 3:00 AM, Jeff Pang wrote:

In this case, the answer is that your main zone (example.com) will
have an error, because it will have an A record below the "bottom" of
the zone that is not a glue record. In other words, it will recognize
that www.my.example.com belongs to my.example.com, not to  
example.com.




Chris,

You said main zone will get an error b/c it has that an A record below
the bottom of the zone.
Is it correct if that A record was on the top of the zone? like:

www.my.example.com.  IN A  11.22.33.44
my.example.com.  IN NS  ns.my.example.com.
ns.my.example.com.  IN A  55.66.77.88


No, I didn't mean positionally within the zone file. Record order is  
mostly irrelevant in zone files (but the SOA record must be first).


The "bottom" of a zone is any delegation point to a subzone. "www.my"  
is below a delegation of "my". The exception is glue records, which  
are address records that belong to the subzone but are present to  
support the delegation itself.


Chris Buxton
Professional Services
Men & Mice

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


Position of SOA in master file (was: Re: about resolving on a child zone)

2009-04-14 Thread Chris Thompson

On Apr 14 2009, Chris Buxton wrote:

No, I didn't mean positionally within the zone file. Record order is  
mostly irrelevant in zone files (but the SOA record must be first).


No, it need not be first.

It's *conventional* to put it first.

It's only *necessary* if you (a) have no $TTL directive (b) have no explicit
TTL on the first RR in the master file. Or at least, with the various BIND
backwards-compatibility features, that's the case.

--
Chris Thompson
Email: c...@cam.ac.uk

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