Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th February 2006, 13:11
sotiris1821 sotiris1821 is offline
Junior Member
 
Join Date: Feb 2006
Location: Katerini, Greece
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Two-in-one DNS server with BIND9

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 ?
Reply With Quote
Sponsored Links
  #2  
Old 28th February 2006, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th March 2006, 14:44
sotiris1821 sotiris1821 is offline
Junior Member
 
Join Date: Feb 2006
Location: Katerini, Greece
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
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)..
Reply With Quote
  #4  
Old 7th March 2006, 23:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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/sho...24&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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th March 2006, 08:28
sotiris1821 sotiris1821 is offline
Junior Member
 
Join Date: Feb 2006
Location: Katerini, Greece
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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..

Quote:
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...
Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
ispconfig and mambo shajazzi Installation/Configuration 70 28th March 2006 19:29
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 10:50
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 13:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.