Different Results for Different Subnets

Kevin Darcy kcd at daimlerchrysler.com
Tue Jul 24 21:24:27 UTC 2001



roclar at wm.edu wrote:

> I cannot think of anyway of doing this, but I thought I would ask.  Is
> it possible to setup a host name so that a certain address range gets
> one IP address and a different address range gets another?  For
> example: query host.example.com from address range 192.168.1.10 to
> 192.168.1.100 returns 192.168.1.1 but query host.example.com from
> 192.168.1.101 to 192.168.200 returns 192.168.1.2.

You can do this with "split DNS", implemented either through "view"s in
BIND 9, or by running multiple nameserver instances listening on
different interfaces, in BIND 8. A quick look through the archives should
reveal lots of information about split DNS and views.

On the other hand, if it's acceptable to return *both* addresses in query
responses, sorting the order of the addresses according to the source
address of the client, you can do this more simply using the
"sortlist" option. This might actually be preferable, if you're doing
this only for performance reasons and your clients are smart enough to do
failover in case one of the nodes/interfaces fails...


- Kevin





More information about the bind-users mailing list