PDA

View Full Version : Two-in-one DNS server with BIND9


sotiris1821
28th February 2006, 13:11
When you include the external zone file in the internal view, you can't have the same hostname pointing to different IP addresses..
I would like to have mail.example.com point to 193.194.195.1 externally and mail.example.com point to 10.0.0.1 internally ...

Any solutions for this ? :eek:

falko
28th February 2006, 18:45
Why don't you let it point to 193.194.195.1 and then let your router forward all requests to 10.0.0.1?

sotiris1821
7th March 2006, 14:44
Why don't you let it point to 193.194.195.1 and then let your router forward all requests to 10.0.0.1?

Because I want to keep internal traffic internal (and accounted only once, as internal) and not travel out-and-in again between two routers (internet-dmz and internal-lan)..

falko
7th March 2006, 23:27
I see two solutions for your problem: you change the hosts file on your clients so that mail.example.com points to an internal IP address: http://www.howtoforge.com/forums/showpost.php?p=2024&postcount=3

Or you set up an internal DNS server that resolves mail.example.com to your internal IP address and forwards all other requests to the "real" nameservers, and then you let the client PCs use that nameserver as the primary.

sotiris1821
8th March 2006, 08:28
I ended up using two independent files (I did not include the external zone file in the internal).. The gotcha is the opposite of what is stated in the howto..

But we are a small, smart start up, we can do better than copy-paste each modification to the zone file, furthermore, that is very error prone (will you always remember to modify the internal zone file when you modify the external one, or will you forget and spend some days debugging network problems ?).

Cheers...