This is what i want:
I want to be able to access redmine.mydomain.com from my lan AND from outside network.
This is how I'm trying to do:
I've registered mydomain.com at joker.com
I've create a DYNA record for mydomain.com
utm > firewall > allow http
core > network > dynDNS > enable dynDNS for mydomain.com
(with the login information for joker.com)
dynDns is working fine. I can access mydomain.com webpage from anywhere
infra > webserver > add virtual host: mydomain.com
(this is ok. The mydomain.com shows the files in /srv/www/mydomain.com)
* When I do that, Zentyal created a mydomain.com DNS entry on its DNS server with local IP address (10.0.2.1, one if own IPs)
infra > webserver > add virtual host: redmine.mydomain.com
* Zentyal no longer creates a DNS entry
infra > DNS > mydomain.com > add host
Pointed redmine stuff for the virtualhost path* Inside my LAN, when i connect to redmine.mydomain.com it works!
The problem is outside the network it doesn't work! When i tried to connect it would give host unkown error.
So I kept trying
on joker.com I've created a NS record for redmine.mydomain.com to mydomain.com
(I think this means that when someone looks up for redmine.mydomain.com joker will them to search at mydomain.com)
I opened my firewall for DNS connections.
Now, when I try to connect to redmine.mydomain.com from outside my network I get timed out.
I went to http://www.dnswatch.info
and looked up for redmine.mydomain.com
Searching for redmine.mydomain.com. A record at F.ROOT-SERVERS.NET. [22.214.171.124] ...took 18 ms
Searching for redmine.mydomain.com. A record at d.gtld-servers.net. [126.96.36.199] ...took 115 ms
Searching for redmine.mydomain.com. A record at c.ns.joker.com. [188.8.131.52] ...took 119 ms
Searching for mydomain.com. A record at F.ROOT-SERVERS.NET. [184.108.40.206] ...took 17 ms
Searching for mydomain.com. A record at j.gtld-servers.net. [220.127.116.11] ...took 271 ms
Searching for mydomain.com. A record at a.ns.joker.com. [18.104.22.168] ...took 118 ms
Searching for redmine.mydomain.com. A record at mydomain.com. [1XX.1XX.2XX.1XX] ...took 250 ms
A record found: 10.0.1.1
So I think that I'm getting close, but the problem might be that I'm doing something wrong in my DNS configuration at Zentyal, hence I'm asking here at this forum.
Or am I just crazy and I'm doing this completely wrong? I mean, is there conceptual errors in my work? I'm asking because this pure trial-and-error effort.
P.S. (I've masked my ip address and changed my actual domain for 'mydomain'