DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 18th, 2009, 07:48 AM
gigabytewd gigabytewd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 2 gigabytewd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 26 sec
Reputation Power: 0
Redirect internal HTTP Requests

Firstly my apologies if this is the wrong place to be posting this question.

I have a web application that is setup on a sub-domain. The sub-domain has an A record pointing to the IP address of the network of the company that the application is being used by. This works just fine, you type in the subdomain and it goes to the webserver on their network.

This works perfectly, but only if you are outside the network. If you are in their office on the network that the server is on then when you request the sub-domain you get sent to the router's web-based configuration. One solution to this is simply to use the internal IP address of the webserver, but there are many references to the domain from within the web application, so none of the links etc... work.

The router is a SpeedTouch 780. The webserver is a QNAP TS-109. I have full control over the DNS for domain.

Any help/suggestions welcome!

Many thanks in advance.

Reply With Quote
  #2  
Old September 18th, 2009, 10:42 AM
seack79 seack79 is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 1,926 seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 5 m
Reputation Power: 1785
Sorry if I misunderstand your question. Could you setup an internal DNS server for your LAN? Then create a forward lookup zone for whatever.mysite.com and an associated A record for the resource?

For instance, let's say that your local domain is mycompany.local. Your mail record is obviously for mycompany.com. On your local DNS servers you could create a forward lookup zone for mycompany.com and point mail.mycompany.com to your internal host.

Reply With Quote
  #3  
Old September 18th, 2009, 10:57 AM
gigabytewd gigabytewd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 2 gigabytewd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 26 sec
Reputation Power: 0
The local network is not setup with a domain, it is just a microsoft workgroup.

Would you suggestion still work in this case?

Basically the main domain, lets say xyz.com is hosted on an external server, and there is an A record for admin.xyz.com that points to the IP address of the companies' network, this all works fine for external HTTP requests to admin.xyz.com, since the router forwards the ports correctly to the webserver, however any internal requests obviously don't go through the port forwarding in the router, so any internal HTTP requests go to the router configuration page.

So yes, what I need is something that will translate admin.xyz.com into the internal ip address of the webserver. Which I suppose is what an internal DNS server would do?

There are 2 windows 2000 servers running on the network, could I set one of these up to do the job? If so could you point me to some kind of tutorial that might help me in the right direction to acheive what I'm after?

many thanks again for your help!

Reply With Quote
  #4  
Old September 18th, 2009, 11:19 AM
seack79 seack79 is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 1,926 seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level)seack79 User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 5 m
Reputation Power: 1785
I'm pretty sure that you could use one of the servers to get it to work. You may have to play with port bindings on the site or something (not sure though) if it's not using a default port.

Take a look here and see if that helps.

Reply With Quote
  #5  
Old September 19th, 2009, 06:00 PM
jwdonahue's Avatar
jwdonahue jwdonahue is offline
Bellevue WA, USA
Click here for more information.
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 2,516 jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level)jwdonahue User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 7 h 5 m 6 sec
Reputation Power: 619
Quote:
Originally Posted by gigabytewd
The local network is not setup with a domain, it is just a microsoft workgroup.

Would you suggestion still work in this case?


Yes. Internet "domains" are just DNS zones and they have nothing to do with Windows or Active Directory (except that a windows domain can/should also have a zone of the same name). In fact, you can configure your DHCP server to cause all the machines that use it to add the yourdomain.com suffix to their machine names so they could address each other as machineName.yourdomain.com or just machineName.

Are you running WINS on one of your servers?

If you're going to setup internal DNS, you should have two of them so the whole network doesn't go south every time you reboot one of the servers. DNS on Windows servers is very stable, but you are probably using those servers for stuff that might not be so solid. It's very simple to setup.

Microsoft has some documentation on how to setup DNS servers.
__________________
My worst nightmare was a pointless infinite loop.
Work in progress; don't poke the curmudgeon!
http://www.odonahue.com/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Redirect internal HTTP Requests


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek