bind 9 - lwresd - lwres_getrrsetbyname, load balancing doesn't work

2010-08-23 Thread nati shauli
Hi,

 

I run a bind name sever as lwrsed and use
lwres_getrrsetbyname to resolve a domain name,

But for some reason I always get a the records in the same
order (priority).

When I bypass the lwres_getrrsetbyname  and use
nslookup to resolve a domain name, the daemon returns the records in the order

I set by adding rrset-order option to the configuration file.

Do you have a clue what could be the problem?

Is it possible that the light weight resolver doesn’t
support load balancing in lwres mode?

 

Thanks,

Nati


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

Clarification on bind response

2010-08-23 Thread rams
Hi,

I have set up data as follows in bind.
Zone: rameshops5526old.com

maint.rameshops5526old.com. 300 IN  CNAME
maint.global.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns5.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns2.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns1.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns6.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns4.rameshops5526old.com.
rameshops5526old.com.   21600   IN  NS  dns3.rameshops5526old.com.
global.rameshops5526old.com. 300 IN NS  j.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  a.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  l.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  d.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  b.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  e.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  c.ns.nsatc.net.

Queried against bind and get the reposne as follows

[r...@stulcqacustbind2 recursive_enabled]# dig @10.31.145.194
maint.rameshops5526old.com.
; <<>> DiG 9.6.1-P3 <<>> @10.31.145.194 maint.rameshops5526old.com.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16855
;; flags: qr *aa* rd; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;maint.rameshops5526old.com.IN  A
;; ANSWER SECTION:
maint.rameshops5526old.com. 300 IN  CNAME
maint.global.rameshops5526old.com.
;; AUTHORITY SECTION:
global.rameshops5526old.com. 300 IN NS  e.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  l.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  a.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  j.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  c.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  d.ns.nsatc.net.
global.rameshops5526old.com. 300 IN NS  b.ns.nsatc.net.
;; Query time: 2 msec
;; SERVER: 10.31.145.194#53(10.31.145.194)
;; WHEN: Tue Aug 24 06:26:31 2010
;; MSG SIZE  rcvd: 195
Here AA flag is returning is it correct? because domain "
global.rameshops5526old.com. " delegated so we should not return AA flag
right? Please clarify me.

Thanks & Regards,
Ramesh
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Clarification on bind response

2010-08-23 Thread Mark Andrews

In message , rams 
writes:
> Hi,
> 
> I have set up data as follows in bind.
> Zone: rameshops5526old.com
> 
> maint.rameshops5526old.com. 300 IN  CNAME
> maint.global.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns5.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns2.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns1.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns6.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns4.rameshops5526old.com.
> rameshops5526old.com.   21600   IN  NS  dns3.rameshops5526old.com.
> global.rameshops5526old.com. 300 IN NS  j.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  a.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  l.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  d.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  b.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  e.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  c.ns.nsatc.net.
> 
> Queried against bind and get the reposne as follows
> 
> [r...@stulcqacustbind2 recursive_enabled]# dig @10.31.145.194
> maint.rameshops5526old.com.
> ; <<>> DiG 9.6.1-P3 <<>> @10.31.145.194 maint.rameshops5526old.com.
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16855
> ;; flags: qr *aa* rd; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 0
> ;; WARNING: recursion requested but not available
> ;; QUESTION SECTION:
> ;maint.rameshops5526old.com.IN  A
> ;; ANSWER SECTION:
> maint.rameshops5526old.com. 300 IN  CNAME
> maint.global.rameshops5526old.com.
> ;; AUTHORITY SECTION:
> global.rameshops5526old.com. 300 IN NS  e.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  l.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  a.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  j.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  c.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  d.ns.nsatc.net.
> global.rameshops5526old.com. 300 IN NS  b.ns.nsatc.net.
> ;; Query time: 2 msec
> ;; SERVER: 10.31.145.194#53(10.31.145.194)
> ;; WHEN: Tue Aug 24 06:26:31 2010
> ;; MSG SIZE  rcvd: 195
> Here AA flag is returning is it correct? because domain "
> global.rameshops5526old.com. " delegated so we should not return AA flag
> right? Please clarify me.
> 
> Thanks & Regards,
> Ramesh

"aa" indicates that the server is authoritative for the CNAME record.

Mark
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users