Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hi there i am a total newbi to this. i want to know how to set up a subdomain. i am using IIS7

the only way i access my test site is by typing in the ip-address of my machine

how do i get a url like


share|improve this question

migrated from Sep 22 '10 at 17:15

This question came from our site for professional and enthusiast programmers.

If you are searching and not finding any results (you asked how to set up a subdomain) try searching for Domain Name IIS7. – Jay Sep 22 '10 at 16:57
google doesn't hurt use it – B14D3 Dec 29 '11 at 14:47

You need to register a domain (see,,, etc.), use the registrar's tools to set the domain's DNS to point at your web server's IP, and then make sure your web server is configured to accept name-based queries.

share|improve this answer

Firstly you have posted this in the wrong area. Please read the FAQ ("Server Fault is for system administrators and desktop support professionals, people who manage or maintain computers in a professional capacity.")

Saying that, you need to understand the differences between subdomains and the actual domain address. Subdomain are basically anything in-front of the domain address i.e.

As Alex mentioned, you need to register a domain name. There are many out there, you don't require a hosting package as many of them offers, but you do require a registrar that will register the domain name. You then need to point this to your IP address, this should ideally be a static IP address (dynamic will always be changing unless you use something like dyndns).

You will also need to add port forwarding on your router, reconfigure firewall and reconfigure the IIS to accept the hostname.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.