SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. 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

I've created host-named site collection in a Web application by using the following PowerShell:

$dbName = "Content_Testing"
$aPool = "WebAppPool"
$waName = "Web Application Testing"
$web = New-SPWebbApplication -DatabaseName $dbName -ApplicationPool $aPool -Name $waName -Port 80

$web = Get-SPWebApplication $waName

New-SPSite -url "" -HostHeaderWebApplication $w -Name "HostA" -OwnerAlias "abc\thuan" -Template sts#0 

After created, the URL "" can't be founded. Do I have to configure in DNS before accessing to "



share|improve this question

Yes before you try to access through anything but the object model you have to add the DNS entry (or modify the hosts file)

Creating the site only changed the IIS site for the WebApplication to listen to any request on port 80 not caught by any other IIS site, but for the traffic to reach this server you have to set up DNS.

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.