LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS trouble w/ triple-homed box (https://www.linuxquestions.org/questions/linux-networking-3/dns-trouble-w-triple-homed-box-387300/)

psychobyte 11-28-2005 12:41 PM

DNS trouble w/ triple-homed box
 
Hi,

I have a triple-homed box with 2 interfaces world accessible and one on an internal/private netowrk that has a DNS server. I'm not sure how to setup the resolve.conf file to lookup anthing that's on the private network.

Or is it possible to have my DNS server forward/redirect a request for a private network address to the private network DNS server eg.

client want 10.0.0.5 -> asks DNS server 165.0.0.1
DNS server 165.0.0.1 says "why don't you ask 10.0.0.2"
client asks 10.0.0.2 which then resolves the name.

Thanks,

fr_laz 11-28-2005 04:07 PM

Hi,

I suppose you're talking of BIND...
in your named.conf, you should have entries like:
Code:

zone myzone.org {
  type master;
  file myzone.db;
  };

With Bind, you can set up forwarders as with any other DNS server (for non local domains), but also specific forwarders for specific zones:
Code:

zone myprivatezone.org {
  type forward;
  forwarders { 192.168.0.45; 10.26.3.34};
  };

Thus you say that every single query for *.myprivatezone.org must be forwarded first to 192.168.0.45, and secondly to 10.26.3.34 (which should be the DNS servers responsible for this zone).

I think that's pretty much what you're after... the above cannot be done with a Win200x server, but Bind shouldn't be the only one to manage this.
If you have a win server (and dared posting on this forum, arglll!!!!), then you can only set this up for subdomains (ie domain.com can have a specific forwarder for foo.domain.com, but not for anotherdomain.com)

Hope this helps


All times are GMT -5. The time now is 05:49 PM.