how do I get a single DNS to return addresses based on query

Andris Kalnozols andris at hpl.hp.com
Mon Jun 17 23:29:34 UTC 2002


> > Try this:
> >
> > acl "internal-net" { 192.168.1/24; };
> > options {
> >     sortlist {
> >             { { localhost;          # IF   from the local host [127.0.0.1]
> >                 internal-net; };    # OR   from the internal network
> >                 internal-net; };    # THEN prefer internally-connected addr
> >             { any;                  # IF   from an external net
> >                 !internal-net; };   # THEN prefer any non-internal address
> >     };
> > };
>
> No, RFC 1918 addresses should *not* be published on the Internet,
> even as failover addresses!
>
> Use "view"s (BIND 9) instead, or (BIND 8) run multiple nameserver
> instances on the same box, binding to different interfaces.
>
> -
>
> Kevin

Doh!  This is what I get for skipping lunch and no afternoon coffee.
Kevin's suggestion is the right thing to do.

Andris



More information about the bind-users mailing list