setting order of reply
Andris Kalnozols
andris at hpl.hp.com
Wed Jan 30 00:11:06 UTC 2002
Try this:
acl "subnet-1" { 10.0.1/24; };
acl "subnet-2" { 10.0.2/24; };
acl "subnet-3" { 10.0.3/24; };
options {
...
sortlist {
{ { localhost; # IF from the local host
localnets; }; # OR from a locally-connected net
localnets; }; # THEN prefer locally-connected address
{ subnet-1; # IF from subnet 1
subnet-1; }; # THEN prefer subnet 1 address
{ subnet-2; # IF from subnet 2
subnet-2; }; # THEN prefer subnet 2 address
{ subnet-3; # IF from subnet 3
subnet-3; }; # THEN prefer subnet 3 address
};
Andris
> Hi;
>
> I have three name servers running on an internal network and would like to configure them to reply with different addresses
>
> depending on where the request originates.
>
> An example is for the directory server. This is set up to round robin in the following order:
>
> dir1.lanl.gov 60 IN A 10.0.1.1
>
> dir2.lanl.gov 60 IN A 10.0.2.2
>
> dir3.lanl.gov 60 IN A 10.0.3.3
>
> If there is a query from a machine on the 10.0.3 network to the name server on 10.0.3, then I would like the response to always
>
> be 10.0.3.3. If the query comes from the 10.0.2 net, I would like the response to be 10.0.2.1, and so on.
>
> The master server in the example above is 10.0.1.1, the other two are slaves.
>
> I am running bind version 8.
>
> I would appreciate any ideas on how to accomplish this, (although I do try to keep up with this group, a reply to the e-mail
>
> address below would be best).
>
> --
> Thanks
> Bob Stewart (res at lanl.gov)
>
> mail stop B255 phone = 505-667-9847 ta3, sm1498, room 239
>
> http://public.lanl.gov/res
More information about the bind-users
mailing list