BIND9 Return different IP address based on subnet

Niall O'Reilly niall.oreilly at ucd.ie
Mon Jan 5 12:02:57 UTC 2015


At Sat, 3 Jan 2015 19:24:47 +0100,
Christian Kette wrote:
> 
> I have found a workaround.
> I defined a different zone for every network

  A simpler solution might be to use a sortlist.

  From the ARM:

6.2.16.13 The sortlist Statement

The response to a DNS query may consist of multiple resource records
(RRs) forming a resource records set (RRset). The name server will
normally return the RRs within the RRset in an indeterminate order
(but see the rrset-order statement in Section 6.2.16.14). The client
resolver code should rearrange the RRs as appropriate, that is, using
any addresses on the local net in preference to other
addresses. However, not all resolvers can do this or are correctly
configured. When a client is using a local server, the sorting can be
performed in the server, based on the client’s address. This only
requires configuring the name servers, not all the clients.

  Niall
  


More information about the bind-users mailing list