Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set Host Header Name? 1

Status
Not open for further replies.

Plato2

Programmer
Joined
Dec 6, 2002
Messages
192
Location
US
I have an IP address for the web site. I want to Set Host Header Name.(I don't want people to type IP address for the web site - I want to give host name)

I tried to do so by going to IIS services and then:

I go to property ->Web Site tab -> ->IP address ->advanced
->Host Header Name.
I gave the host header name for my IP address. But when I type the header name that I chose - it doesnt work.

Why is that? How can I do that?(how to set domain name for my IP address?)

Thanks in advance!
 
Does your DNS have the host header name in it to resolve to your server's IP address?
 
How can I check that DNS have the host header name ?

Thanks
 
I'll assume that your DNS doesn't have the record yet.

If you host your own DNS, then you'll need to connect to the DNS server and check the zone file to make sure that a record has been created pointing your new url to the web server's address.

If someone else hosts your DNS, then they will need to do it for you.

If you go to a command prompt and type in the host header you created like you should receive the address if DNS recognizes it. Otherwise you'll get an error of something like "could not find host....".

Until there is a DNS record for your website's name, you won't be able to get to it by name. The other option is using a 'hosts' file, but that has to be created on every computer that will be accessing the website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top