Different Results for Different Subnets
Brad Knowles
brad.knowles at skynet.be
Tue Jul 24 18:06:54 UTC 2001
At 8:15 AM -0700 7/24/01, Roger Clark 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.
Sure. Use the "views" mechanism in BIND 9. You can read more
about this at <http://sysadmin.oreilly.com/news/views_0501.html>, but
you really should buy the 4th edition of the book _DNS and BIND_ by
Paul Albitz & Cricket Liu (published by O'Reilly & Assoc.).
--
Brad Knowles, <brad.knowles at skynet.be>
/* efdtt.c Author: Charles M. Hannum <root at ihack.net> */
/* Represented as 1045 digit prime number by Phil Carmody */
/* Prime as DNS cname chain by Roy Arends and Walter Belgers */
/* */
/* Usage is: cat title-key scrambled.vob | efdtt >clear.vob */
/* where title-key = "153 2 8 105 225" or other similar 5-byte key */
dig decss.friet.org|perl -ne'if(/^x/){s/[x.]//g;print pack(H124,$_)}'
More information about the bind-users
mailing list