Firewall Wizards mailing list archives

Re: BIND bindings


From: Gigi Sullivan <sullivan () seclab com>
Date: Sat, 3 Oct 1998 12:35:03 +0200 (CEST)


Hello there :)

On Tue, 29 Sep 1998, Charles Kaplan wrote:

Date: Tue, 29 Sep 1998 19:12:15 -0400
From: Charles Kaplan <ckaplan () norsec com>
To: firewall-wizards () nfr net
Subject: BIND bindings

Perhaps I am just looking at this the wrong way, but can anyone think of a
way to run multiple instances of BIND on a multi homed box and have one
version of BIND bind to each interface ?

IE I want to build a tri-homed box with 3 separate/distinct DNS servers
running on it, one on each interface.


Well, I really don't know if it's possible to tell BIND to binds itself on
different interfaces through some conf files.
However, you can try to modify the bind's source code and just before the
bind() call, try to search and replace the 

sockaddr_in{}.sin_addr.s_addr = INADDR_ANY; assignment with something like
sockaddr_in.sin_addr.s_addr = inet_addr(my_addr);

where my_addr is a pointer to char, maybe retrieved by a command line
option.

I know that maybe this is not a good solution to do this, but I guess that
it should work.

However it sounds strange to me that it's not possible to change the bind
address through some configuration files.


I can't believe that I am the first person who wants to do this, yet I
can't find anything like this in the man pages, DNS/BIND book, etc..

TIA

-Charles Kaplan



Best Regards,


                        -- gg sullivan


--
Lorenzo Cavallaro
Intesis SECURITY LAB            Phone: +39-2-671563.1
Via Settembrini, 35             Fax: +39-2-66981953
I-20124 Milano  ITALY           Email: sullivan () seclab com




Current thread: