Re: whether squid application of the machine and the client will get different Name Resolution ( A records)at cdn ( balance or random ) environment .

2016-04-12 Thread Graham Clinch
Hi John,

> whether we can force BIND to realize same Name Resolution ( A records) ,
> i search named.conf detail and *found the command ***rrset-order fixed )
> *will be suitable *, but fixed will be support by BIND 8 ,
> 
> and i use BIND 9 now , if possible , please give me some advisement

Checking section 6.2.16.14 of the BIND 9.10 Administrators Reference
Manual (https://www.isc.org/downloads/bind/doc/):

-=-
In this release of BIND 9, the rrset-order statement does not support
”fixed” ordering by default. Fixed ordering can be enabled at compile
time by specifying ”–enable-fixed-rrset” on the ”configure” command line.
-=-

However, my reading of fixed ordering ('the order they are defined in
the zone file') implies it can only work on an authoritative server that
has a full copy of the zone.  A server that is iterating will receive
records in the order that the authoritative sorts them, and I don't see
how the iterating server can reorder them against the zone file.

sortlist (section 6.2.16.13 of 9.10) might be more appropriate, but it's
scaled more towards continent-sized address blocks rather than
reordering all answers lexicographically.

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


Re: whether squid application of the machine and the client will get different Name Resolution ( A records)at cdn ( balance or random ) environment .

2016-04-12 Thread johnzeng
Hello Graham:

Thanks for your advisement , you are right , and i search full choice at
options part again .

and sortlist will be suitable way . but i have to write long config at
sortlist


Thanks again

Have a good day with you .





:
> Hello Dear Sir :
>
> i have a question , i have run squid ( tproxy mode ) and bind9 at a same
> machine , and dns server ip of full client is the machine ip too
>
> and when a client try to send dns request to the same machine and squid
> application of the machine send same request to local machine ( same
>
> machine ) , i hope A record will be same . but maybe squid application
> of the machine and the client will get different Name Resolution ( A
> records)
>
> at cdn ( balance or random ) environment .
>
>
> whether we can force BIND to realize same Name Resolution ( A records) ,
> i search named.conf detail and *found the command ***rrset-order fixed )
> *will be suitable *, but fixed will be support by BIND 8 ,
>
> and i use BIND 9 now , if possible , please give me some advisement
>
>
> Thanks
>
> John
>
>
>
>
> root@linux:~# nslookup n.sinaimg.cn
> ;; Truncated, retrying in TCP mode.
> Server: 127.0.0.1
> Address: 127.0.0.1#53
>
> Non-authoritative answer:
> n.sinaimg.cn canonical name = nsinaimg.gslb.sinaedge.com.
> nsinaimg.gslb.sinaedge.com canonical name = weibo.grid.sinaedge.com.
> weibo.grid.sinaedge.com canonical name = sinaedge.lxdns.com.
> sinaedge.lxdns.com canonical name = sinajs.xdwscache.ourglb0.com.
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.61.26.199
> Name: sinajs.xdwscache.ourglb0.com
> Address: 14.215.100.95
> Name: sinajs.xdwscache.ourglb0.com
> Address: 125.90.204.122
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.58.18.36
> Name: sinajs.xdwscache.ourglb0.com
> Address: 219.128.78.106
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.57.28.209
> Name: sinajs.xdwscache.ourglb0.com
> Address: 125.90.206.144
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.6.245.177
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.131.119.93
> Name: sinajs.xdwscache.ourglb0.com
> Address: 116.211.251.76
> Name: sinajs.xdwscache.ourglb0.com
> Address: 59.56.30.221
> Name: sinajs.xdwscache.ourglb0.com
> Address: 14.215.100.94
> Name: sinajs.xdwscache.ourglb0.com
> Address: 125.90.204.117
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.6.245.191
> Name: sinajs.xdwscache.ourglb0.com
> Address: 183.57.28.61
>

___
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