I'm new in this forum and ... first thing first.. sorry for my english
i need a little help configuring BIND9 on Ubuntu server 12.04.2
The situation is the following.
=> LINUX SERVER => linux ubuntu 12.04.2 With BIND9, iptables and two eth: eth0 to the wan (PUBLIC STATIC IP from ISP) and eth1 on the local LAN (10.1.1.120)
=> WEB SERVER => ubuntu 12.04.2 linux apache, mysql and eth0 on the local LAN (10.1.1.123) where resides the crm
=> MAIL SERVER => linux ubuntu 12.04.2 with postfix - dovecot etc etc and eth0 on the local LAN (10.1.1.122) where lies the webmail
We have a domain name NOMEAZIENDA.COM managed externally with a public registrar (register) only for DNS management. The site, which responds to www.nomeazienda.com, resides in a webfarm, and for this there are no problems
But we have some web applications (webmail, CRM, workflow, ...) that are hosted on our servers in LAN, and for which we now need to make them accessible from the wan. And here I problems arise.
As I understand, if I create a zone master (authoritative) in BIND9 for NOMEAZIENDA.COM, all of the local lan pc would not be able to reach the site www.nomeazienda.com, unless I create a Record within of my DNS. This solution would avoid it because I duplicate a lot of routes ...
I then decided to create a master zone NOMEAZIENDA.LOCAL in my DNS. Internally everything works perfectly. By all client applications are reachable.
What I miss to understand is:
I set a record CRM.NOMEAZIENDA.COM in external registrar with a A RECORD (e.g. CRM.NOMEAZIENDA.COM A MY_PUBLIC_STATIC_IP_ADDRESS) to my server where BIND9 resides.
Now.. What i would like to do is:
when i write crm.nomeazienda.com (from a browser in a computer outside my LAN) i must view the crm at crm.nomeazienda.local hosted in a server in my lan.
Thank's in advance to all...