AW: different external and internal addresses

This is a discussion on AW: different external and internal addresses within the Bind Users forums, part of the DNS and Related Forums category; Hello, > I want to have different ip addresses for a lookup based on where the > query comes from. ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2004
Walkenhorst, Benjamin
 
Posts: n/a
Default AW: different external and internal addresses

Hello,

> I want to have different ip addresses for a lookup based on where the
> query comes from. For example www.tupari.net should be
> 66.166.198.124
> to the outside world but 192.168.0.2 to the internal one. While the
> bind admin guide shows how to restrict certain zones based on
> ip, that
> isn't what I want to do. So how do I do this while running one bind?


You can use views, they are explained in the BIND v9 ARM.
You can match views depending on the source-IP of a query as well the
destination-IP. Within a view, you can override global options by re-defining
them. For example, you could answer recursive queries from your internal view
but refuse them from the external view.
If you want to have queries answered differently from both views, you need
to set up two sets of zone files.
A sample config might look something like this:

view "internal" {
match-destinations { 192.168.0.2; };

[ ... your options and zones go here ... ]
};

view "external" {
match-destinations { 66.166.198.124; };

[ ... ]
};

For further details on views, see the BIND v9 ARM (it should come with BIND9),
if you are willing to throw money at it, see Liu's & Albitz' "DNS & BIND",
available from O'Reilly.

Kind regards,
Benjamin


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0