• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3127
  • Last Modified:

Creating DNS entry for website

Hi

At the moment, I have an IIS web site running at http://server1.mydomain.com/application1/web

I would like to shorten this so that users only have to type http://app1

How is this possible in DNS?
0
kam_uk
Asked:
kam_uk
  • 4
  • 4
  • 3
  • +3
2 Solutions
 
wantabe2Commented:
Are you going to make this available on the web or just on browsers on your LAN?
0
 
kam_ukAuthor Commented:
Hi there

Just browsers on our internal network for now.
0
 
Justin_W_ChandlerCommented:
You can use a DNS alias to resolve APP1 to SERVER1.MYDOMAIN.COM/etc

0
 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

 
wantabe2Commented:
Yes, just make a manual entry in your DNS zone that pointst the IP address of the host to the DNS name. Teh you should be able to type it in a browser to access it.
0
 
kam_ukAuthor Commented:
Thanks guys

Ok, let's say the IP of server1 is 192.168.1.10

Are you saying that I need to add an entry that points

192.168.1.10 > app1?

Or an Alias that points

app1 > server1.mydomain.com/application1/web

Or both?
0
 
rvthostCommented:
@kam_uk:

Justin_W_Chandler's answer is incorrect.

wantabe2's last comment was partially accurate, just incomplete.

What you specifically are asking for cannot be done ONLY with DNS.  DNS is a technology to translate FQDN to IP, IP to FQDN, and identify the FQDN of domain service records.  

What you want is an A or CNAME that directs to server1.mydomain.com.  DNS can be used to create your "app1" alias, and that will get you to the web server "server1.domain.com".  From there, you need to use a webpage redirect on the server1 web server to specifically reference the page "server1.mydomain.com/application1/web".  DNS can get you to the correct web server, the web server itself will have to tell the user what directories/pages to access.  A simple redirect is the answer.

I answered a previous question that is somewhat similar to what you are looking for.  A little more history on that can be found here:

http://www.experts-exchange.com/Networking/Protocols/DNS/Q_23881034.html

Hope this helps, post back if not!! :)
0
 
Justin_W_ChandlerCommented:
I'm not sure how you could necessarily say that my answer is incorrect, when you say "DNS can be used to create your "app1" alias, and that will get you to the web server "server1.domain.com".", which indicates that I am, in fact, correct. As far as directing to the exact page, of course that's handled by the web server operating on SERVER1.MYDOMAIN.COM. In this case, it could be sent to app1.MYDOMAIN.COM, which would be interpreted by the web sever as a specific page on it's host list. While I'll grant that your answer includes some more information; my answer was definitely not incorrect.
0
 
rvthostCommented:
Justin-I apologize if you thought my comment was offensive, it wasn't meant to be.  I wanted my response to be crystal clear to the author.  It is clear from your last comment that you understand how it works.  But your first comment indicated that a DNS alias could be used to resolve ".../etc" and that would be very confusing to the author because DNS cannot do that on its own.  Best regards!
0
 
brwwigginsCommented:
I thought I would throw a small comment out there on this topic....

The host name "app1" is not a FQDN and therefore would not use DNS resolution unless the client is configured to append the proper DNS suffix. The name resolution process is different for "app1" vs. "app1.company.com"

In most cases, that is not a problem...especially if part of a domain....but something to keep in mind.
0
 
Justin_W_ChandlerCommented:
BRWWIGGINS good point. MYDOMAIN.COM should be appended by default as long as the client computer being used is also part of that domain.

RVTHOST yes, I see where you're point comes from. In fact, I recognized that fat finger (should have been a comma) but was not allowed to edit the post.
0
 
tonyteriCommented:
give the points to Justin

/TT
0
 
kam_ukAuthor Commented:
Ok - am a little confused.. :(

Ok, let's say the IP of server1 is 192.168.1.10

Currently, the application can be accessed via

http://server1.mydomain.com/application1/web

I wish for the application to be accessed at

http://app1.mydomain.com 

What do I need to do?

[sorry]
0
 
rvthostCommented:
No problem.  Here is the general idea using the information you provided as an example:

- Create a DNS 'A' record for "app1" to resolve to 192.168.1.10
- Accessing http://app1.mydomain.com will now redirect to http://server1.mydomain.com
- It will NOT redirect to http://server1.mydomain.com/application1/web

 What kind of web server is server1.mydomain.com?

- You need to create a default web page or redirect at server1.mydomain.com.  So when a user accesses http://app1.mydomain.com and gets redirected to http://server1.mydomain.com, that default web page or redirect will redirect them once again to http://server1.mydomain.com/application1/web.  

A simple DNS entry cannot do that on its own, so you need to redirect using the web server.

Post back if still confused.
0
 
Justin_W_ChandlerCommented:
KAM_UK,

The EASIEST way to accomplish this is by making a basic index.html file and store it in the root folder of the server's html feedfrom. Basically just use a redirect to send it to http://server1.mydomain.com/application1/web by default. (in other words, app1.mydomain.com will only direct to that application) It's not too difficult bro -- if you're confused just start with what you know first and then the rest we can help with. Follow the steps above that RVTHOST posted. The DNS alias is a good start -- because then you can see how the record translation will get you to the server. Then you can focus on the second step, which is the html redirection.

Justin Chandler
0
 
kam_ukAuthor Commented:
Thanks all - much appreciated...assigning points equally between Justin and Rtvhost, but thanks to all!
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 4
  • 4
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now