Avatar of CISS
CISS
Flag for United States of America asked on

Host Header Question

We have a number of websites we host for free for friends and such. We're in the process of consolidating all our physical devices to VM. We're limited to the number of public adddresses that are available to us in the new vm rack with our hosting provider. My question is using dns and host headers to share an address is it possible to set up a site so that both of the following url's will resolve to the same site.

www.mywebsite.com
mywebsite.com (no www in front)
DNSMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Jon Scriven

8/22/2022 - Mon
Jon Scriven

Yes, this is possible (and quite standard).

The standard 'A' record should be mywebsite.com.  You would then have a separate 'A' record for the subdomain www.

You don't need to do anything in IIS to support this.
CISS

ASKER
This will work even if you multiple domains sharing the same IP address?
Jon Scriven

Multiple domains, not subdomains?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
CISS

ASKER
Yes multiple domains
Jon Scriven

Which version of IIS are you using?
CISS

ASKER
windows server 2003 iis 7.0 I believe
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Jon Scriven

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Sanjay Santoki

Hello,

I see your questions and IIS can fulfill your current requirements mentioned in this request.

You simply need to add DNS record and host header with appropriate IP address on the website from the IIS Manager.

Regards,
Sanjay Santoki
CISS

ASKER
I tried this with my site and it worked perfectly. Thanks
Jon Scriven

Glad to have helped.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck