Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Domain, Sub-domain and Web Hosting

Need Help!

         

ranmajen

2:58 am on May 2, 2003 (gmt 0)

10+ Year Member



I have registered a domain in Company A and purchased a web hosting service in Company B.

I can make 100 sub-domains as long as using the nameserver of Company A. But If I use the nameserver of Company A, how can I point to the web hosting service in Company B?

Couldn't I use the sub-domain service in Company A while using web hosting service in Company B?

jdMorgan

3:21 am on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ranmajen,

Welcome to WebmasterWorld [webmasterworld.com]!

That all depends on whether the web hosting service will allow you to have multiple subdomains of your domain name.

The name server (DNS) simply translates domain names to IP addresses. Your DNS entry can contain multiple "A records" pointing each of the subdomains to the same, or a different IP address. After retrieving the DNS information, the browser's subsequent requests are then directed to the IP address. As long as your server is configured to accept and sort out the subdomains, there is no problem. You will probably have to have the cooperation of your hosting company, unless they allow you to use multiple subdomains by default. Many only allow "www.example.com" and "example.com", which includes only the single subdomain "www."

Reference: DNS Oversimplified [rscott.org]

HTH,
Jim

ranmajen

3:37 am on May 2, 2003 (gmt 0)

10+ Year Member



Thanks for your welcome.

Oh, so it is only the gimmick of Company A? The most important is what web host service Company B provides to me?

Hm...so I need to pay for it since Company B only provides each sub-domain in HK$30/yr. I have no way to avoid this cost?

jdMorgan

3:55 am on May 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ranmajen,

Some hosting companies will provide you with as many subdomains as you could possibly use for a one-time setup fee. All of these subdomains would be hosted in the same "user account." You would have to use Apache .htaccess files or IIS control panel or a script to "sort them out" once all the requests to different subdomains arrived in your single hosted account.

Other hosting companies only allow you one or just a few subdomains. Research this question, and you may find a better hosting provider for your needs.

Company A has not tricked you - They are offering to set up multiple DNS records for you. That is all they do, and that is all they claimed to do.

Jim