This question already has an answer here:
I'm trying to publish my own website with my own bind9 DNS server running in Ubuntu Server 12.04.3 I've registered the domain name example.com.ar in nic.ar (entity that registers domains in Argentina) delegated to my own dns ns1.example.com.ar ip 184.108.40.206 and ns2.example.com.ar ip 220.127.116.11. I also need to know how to publish those DNS.
I have the following network configuration:
192.168.0.1 GATEWAY1 ext ip 18.104.22.168 FreeBsd PFSense Firewall 192.168.0.6 GATEWAY2 ext ip 22.214.171.124 Debian Iptables Firewall
192.168.2.111 WEBSERVER Ubuntu Server 12.04.3 BIND9+LAMP+DOVECOT
I need to configure WEBSERVER to be able to reach from the internet the websites allocated there from www.example.com.ar I'm having a lot of trouble with DNS zones and records.
I've tried nslookup example.com.ar from the outside of my network but it's unreacheble.
Any help would be appreciated. Thanks.
EDIT 1: This is my example.com.ar zone:
$TTL 3h @ IN SOA ns1.example.com.ar. admin.example.com.ar. ( 1 ; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 day ; @ IN NS ns1.example.com.ar. @ IN NS ns2.example.com.ar. example.com.ar. IN MX 10 mail.example.com.ar. example.com.ar. IN A 192.168.2.111 ns1 IN A 192.168.2.111 ns2 IN A 192.168.2.111 www IN CNAME example.com.ar. mail IN A 192.168.2.111 ftp IN CNAME example.com.ar.
If I just forward my port I'm able to reach the web site by using my external IP address but I can't by its domain name.
I still can't make the entity that registered my domain name example.com.ar to reach my server.