Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I'm running a site on my dedicated server with windows server 2008 , iis & dns has been installed without any configs, have one dedicated ip address.

when I type the dedicated ip of the server in a browser, I can see my website working OK.

I have a domain registered with a reseller and I'm attempting to have the domain resolve to my server (built-in localhost website).

How do I properly setup the ns1 & ns2 nameservers and web zones for that domain , so its publicly live and view able?

I have access to my registrar panel that enables me to change DNS of registered domain to ns1 and ns2.

summary : how to create these ns1 and ns2 in my server?

share|improve this question
What do you mean by (built-in localhost website) ? – Sandman4 Nov 5 '11 at 17:37
@Sandman4 : I mean my server IP address – vaheeds Oct 20 '14 at 20:32

Normally ns1 and ns2 meant to be TWO separate servers. You need additional server, or maybe your registrar will let you go with just one server or alternatively will let you set ns1 and ns2 to the same IP. Anyway, you not supposed to do such "tricks".

Actually some, if not most registrars provide DNS servers as well, if so you need just go to their control panel and setup A record to point to your server IP. If your registrar does not, you may signup to some 3-rd party DNS service (some are free, like and they will provide DNS for you.

share|improve this answer
up vote 1 down vote accepted

I found the solution.

Actually I should use host headers to see my website. simply I add a AAA record to my domain control panel (registrar panel) to point to my server valid IP address.

Then I add a binding to my website in IIS with in the domain field.

and its done!

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.