Author Topic: DNS lookup for subdomain  (Read 2075 times)

jgggr

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
DNS lookup for subdomain
« on: January 21, 2011, 08:09:21 pm »
Hello there.

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
host: redmine
IP: 10.0.1.1

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

Code: [Select]
Searching for redmine.mydomain.com. A record at F.ROOT-SERVERS.NET. [192.5.5.241] ...took 18 ms
Searching for redmine.mydomain.com. A record at d.gtld-servers.net. [192.31.80.30] ...took 115 ms
Searching for redmine.mydomain.com. A record at c.ns.joker.com. [207.44.185.10] ...took 119 ms
Searching for mydomain.com. A record at F.ROOT-SERVERS.NET. [192.5.5.241] ...took 17 ms
Searching for mydomain.com. A record at j.gtld-servers.net. [192.48.79.30] ...took 271 ms
Searching for mydomain.com. A record at a.ns.joker.com. [207.44.185.100] ...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' :))
« Last Edit: January 21, 2011, 08:12:12 pm by jgggr »

jgggr

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: DNS lookup for subdomain
« Reply #1 on: January 25, 2011, 07:16:43 pm »
so, anyone?