Mobile app version of vmapp.org
Login or Join
Lengel546

: Can I set www.something.com to be my AName record I was just hoping someone could point me in the right direction. I want to have my website hosted which I want to display as www.mydomain.com

@Lengel546

Posted in: #Dns #Domains #Iis

I was just hoping someone could point me in the right direction. I want to have my website hosted which I want to display as mydomain.com I also need mydomain.com and blog.mydomain.com to go to the same IP.

Do I need to create:


1 x AName record for mydomain.com which points at my server static URL
Then create 2 x CName records which both point at mydomain.com

?

Because if thats the way it's done then I want to set a redirect up on my IIS server to 301 to mydomain.com if it sees the URL as mydomain.com.

Does this sound okay?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

2 Comments

Sorted by latest first Latest Oldest Best

 

@Debbie626

You should set three A records poiting to your server IP.

*.mydomains.com mydomain.com blog.mydomain.com

Then you need to set up your Virtual Host correctly to accept requests for all three domains/subdomains (see e.g. Virtual hosting with IIS (Internet Information Services) or Setting Host Headers in IIS 6.0).
Redirect needed domains to one desired domain using URL Rewrite module and 301 redirect (e.g. both www and blog to mydomain.com) so you don't have "duplicate" content.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Yes. You may find the Wikipedia article on CNAME informative.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme