BIND configuration for Public and Private IP Address

Discussion in 'Installation/Configuration' started by joel_griego, Mar 18, 2009.

  1. joel_griego

    joel_griego New Member

    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: 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!

  2. Flash

    Flash New Member

Share This Page