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

Setting up a localhost test Intranet Site to a URL

We have a new test server running a test Intranet site that we have on localhost. How do we set this up in DNS so that we can give it a URL that anyone on the network can go to for testing purposes?
0
regsamp
Asked:
regsamp
  • 11
  • 9
  • 3
2 Solutions
 
becraigCommented:
Simply have your network administrator create a DNS A record that points the name you use:

Appplicationsite
http://Appplicationsite

The network admin would add an A record
Appplicationsite     IN         A   localipofyoursite(192.168.xx.xx)


You would then need to ensure your clients all are using your internal DNS server for name resolution, so they can access the site.
0
 
regsampAuthor Commented:
But the name being used is http://localhost. Where do we define the name being used?
0
 
becraigCommented:
you can define any name you need.


The dns  record created will point to the IP address in IIS that your site is bound to.

The name can be anything you want it to be since it will be internal dns only, just ensure it is not a name already in use internally and you are not using a public address (which could cause traffic impact - like www.google.com)


So long and short of it come up with a name it should be a short name so we know it is an intranet site (e.g. appserver or internalsite or anyname) once the name is not already in use internally you will be ok.


Localhost is not really the "name" being used you are just telling windows to resolve to the local sever, or the LOCAL HOST MACHINE.
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
regsampAuthor Commented:
So we just need an A record in DNS that points to that ip of the local host on the test server? Correct?
0
 
becraigCommented:
yup that is all you would need, as well as to ensure internal clients are configured with the internal DNS server as one of the dns servers.
0
 
regsampAuthor Commented:
I know for a fact clients are configured for the internal DNS server but do you have a listing for the steps to create this DNS A record?
0
 
becraigCommented:
Easy path

DnsCmd.exe DNSSERVER /RecordAdd domain.local NAMEYOUWANT .domain.local. A 192.168.xx.xx

DNSSERVER is the host name of the  server holding the DNS role in your organization
Domain.local represents your actual domain name
192.168.xx.xx represents the ip address for the site in IIS
0
 
regsampAuthor Commented:
I meant going through the DNS manager. Sorry.
0
 
becraigCommented:
Simply give the DNS guy the name you want and the internal ip address it has to resolve to.
0
 
regsampAuthor Commented:
We created an A record in DNS with the name we wanted and the ip of the localhost that we can bring it up and nothing so far.
0
 
becraigCommented:
Can you please simply check IIS to be sure the site is bound to that IP ?

What OS / version of IIS are you using ?

Also ping the name you created and ensure that it resolves to the IP you pointed to

Finally just to be sure your site is functioning as expected put the ip address you pointed to in the browser address bar and see if the site loads.



Once you have done all the above steps, please indicate the exact error (if any) that you are facing.
0
 
Santosh GuptaCommented:
hi,

if it still not worked, then pls share your domain name and the url you are trying ?

example:
abc.com
http://zyz.abc.com 
or
http://zyz.def.com
0
 
regsampAuthor Commented:
It is. I can go to any browser, type in http://IP and it comes up but when I create the A record and saved it I get nothing so far. No PING. Yes the address does come up but nothing resolving to the name I get. I get the typical cannot reach the site error.
0
 
regsampAuthor Commented:
This is for an Intranet.
0
 
Santosh GuptaCommented:
pls share example of site url and domain name..
0
 
becraigCommented:
Go to a command prompt
type in

nslookup   hit enter
set q=a    hit enter
nameyouenteredindns   hit enter


If you get nothing then the dns record is not yet present.  

you might just want to do ipconfig /flushdns and try again
0
 
regsampAuthor Commented:
I have a http://localhost on a test server. From another computer I can access it going to http://192.168.1.25 no problem. I created a DNS record with dwmanettest and the IP 192.168.1.25 but it never comes up with the name I gave it.
0
 
regsampAuthor Commented:
I do get the hit in NSLOOKUP
0
 
Santosh GuptaCommented:
are you getting 192.168.1.25  IP.

when typing NSLOOKUP dwmanettest

try to access your site with http://dwmanettest.com
0
 
regsampAuthor Commented:
I got it after a bit. I think it just needed to propagate. Thank you for the help guys.
0
 
becraigCommented:
If you are unable to get the site in your browser you might be going through a proxy.

You might want to edit your browser settings to bypass proxy for local addresses.

If the following assumptions are correct:
1) The site comes up when called by ip address
2) The Nslookup resolves the name to the correct ip

Try this as well telnet or portqry

telnet dwmanettest 80

or portqry -n dwmanettest  -e 80


you can get portqry here

http://www.microsoft.com/en-us/download/details.aspx?id=17148
0
 
regsampAuthor Commented:
It is working now. I guess DNS just needed to catch up. Thank you all again.
0
 
becraigCommented:
np great.


Usually DNS takes a few minutes to catch up which is why I suggested the ipconfig /flushdns

I am happy you got it going.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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