Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th March 2009, 06:33
joel_griego joel_griego is offline
Member
 
Join Date: Nov 2008
Posts: 65
Thanks: 1
Thanked 1 Time in 1 Post
Default BIND configuration for Public and Private IP Address

Hi Guys!

I would like to ask a question about bind. For example I have an email server (with 2 LAN Cards, one is for Public and the other is for private) and I also want it to become my DNS server, I configured bind and have its MX records on it. Right now, its working, my domain name can now be resolved from the internet. On my local area network side, I used my email server's local IP address as my DNS for my workstation, its working for internet browsing. But when I ping my email server's domain name, (for example: example.com) the IP address that is answering is the Public IP address. Is it possible to configure DNS server BIND that whenever im inside my network, everytime i ping my domain, the one who should answer is Private IP address instead of Public? And whenever Im outside my network the one who will answer is the Public (Of course I will use my ISPs DNS when im outside). By the way Im using Ubuntu 8.04. I hope you can help me. Thanks!

Joel
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2009, 11:39
Flash Flash is offline
Member
 
Join Date: Oct 2008
Posts: 33
Thanks: 2
Thanked 4 Times in 3 Posts
 
Default

You can do that with access lists and 2 zone files for thesame domain. there is an excelent howto here on howtoforge:

http://www.howtoforge.com/two_in_one_dns_bind9_views
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Private LAN and NAT Configuration Admailp Installation/Configuration 4 24th November 2008 23:52


All times are GMT +2. The time now is 23:17.


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