Subdomain on a different machine needs own DNS?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Subdomain on a different machine needs own DNS?

Post by RobertGonzalez »

A question was brought up that I am not sure how to answer. I have set up subdomains before, but they have always been on the same box and server as the domain that the site was on. My company is looking to put our secure account management application on a subdomain of our corporate domain, but the secure site will be on a totally different server, machine and IP address than the public WWW site.

How would I set up the server (or DNS record or whatever needs to be set up) so that when a user visits http://www.mywww.com/ they get our WWW site, but when they visit https://acctmgr.mywww.com/ they get our secure account management app? We have several applications that run on our network as subdomains, and they are all on different machines, but they are local to our network (not accessible from the outside world). Any help would be appreciated.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

You should just need to add an A record (and perhaps the reverse PTR) for the subdomain you want, and point it to the server that it sits on, if that server is private (10.x,172.16.x,192.168.x) then you will have a little more work to do :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think we did just that. We actually cannot hit the outside world IP (firewall issues) but we can hit the inside world IP, so we connect from our side of the firewall and the world connects from the other side. It's all good. Thanks for the help.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

...?

You cannot access your (external) public website from the inside? How odd :)

Glad you got it sorted :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

We can access it, but our path to the server is different than from the outside. So we get to it through a different IP route.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I hate that - I usually modify my hosts file to compensate for "inside the firewall syndrome" (but we only have 10-15 machines to modify)
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Assuming you run your own internal dns server, you can send the internal address to any requests coming in from the inside, and the outside address to any requests from the outside... That should solve any firewall issues.
Post Reply