local and remote ip

Barry Margolin barmar at genuity.net
Wed Aug 22 17:23:37 UTC 2001


In article <9m0ioq$5ga at pub3.rc.vix.com>, Juanma <juanmadc at terra.es> wrote:
>
>Hello:
>
>My DNS server has to resolves a domain in a local network and in
>the internet network with a local ip (192.168.1.1 for example) and
>a public ip type A (213.213.213.1 for example).
>The server has two network interfaces.
>Now it resolves the internet domain well, but I want to resolve the domain
>in the local network with the private ip (the same domain name,
>www.aaaaa.com for example), so we access to the server faster in the
>local network
>
>¿How can I configure my bind 8.2.4 to do this?

You need to run two named processes with different named.conf files that
point to different DB files for the domain.  They can use the "listen-on"
option to specify which interface they're each running on.

Or you could upgrade to BIND 9 and use its "views" mechanism to do it in a
single process.

-- 
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list