Convice Bind to listen on IP alias with a range of IPs.

Tony Finch dot at dotat.at
Mon Apr 30 23:06:01 UTC 2012


Augie Schwer <augie.schwer at gmail.com> wrote:
>
> I have a range of IPs bound to a local interface:
>
> lo:1      Link encap:Local Loopback
>           inet addr:10.0.0.1  Mask:255.255.255.224
>
> And I want to convince Bind to listen on sub-set of the given range (
> 10.0.0.2 for example )

You can't do that without hacking the network stack, as far as I know. See
for instance this rather old FreeBSD patch. Note that even this doesn't
quite do what you want since it doesn't allow you to bind to a subset of a
CIDR range configured on an interface.
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/12071

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
Fisher, German Bight: North or northeast 3 or 4, occasionally 5. Slight or
moderate. Fair. Moderate or good.



More information about the bind-users mailing list