IDNetters Forums

Technical News & Discussion => IDNet Help => Topic started by: kefa on Feb 08, 2009, 18:06:09

Title: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: kefa on Feb 08, 2009, 18:06:09
I have created a website which I have uploaded to my IDNet webspace using FTP. I can access this fine through the IDNet URL (e.g. <userid>.www.idnet.com). I have also registered a domain name with my domain hosting company (<mydomain>.co.uk) and have created a CNAME alias from my domain to point to my IDNet webspace (e.g. <mydomain>.co.uk CNAME <userid>.www.idnet.com).

The alias is set up correctly as a DNS lookup returns the same IP address for both my domain and the IDNet web space, however I cannot access the webspace through my domain (e.g. http://<mydomain>.co.uk). Instead I get the following error which I believe is being returned by the IDNet servers (it is the same as if I enter a mistyped URL for IDNet domain e.g. http://<userid>.www.idnet.com/nonexistentpage.html):

Not Found

The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
[/size]

I believe this might be something to do with the configuration of the IDNet web servers so that pages are only returned if the domain name in the client browser request matches the IDNet domain. I'm guessing this is a simple configuration change that IDNet could make to their servers. Could anyone confirm whether this is likely to be the real cause and what changes to IDNet servers would be necessary to make this work?

Many thanks,
Daniel.
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: uxbod on Feb 08, 2009, 18:08:38
Even though you have setup a CNAME the HTTP request sent to IDNET will still be for your .co.uk and the servers will not recognise it.  Unless IDNET add your domain name as a virtual host then you could only do it via URL re-writing.
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Rik on Feb 08, 2009, 18:09:56
Thanks for that, Ux, I was floundering.  :thumb:
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Colin Burns on Feb 08, 2009, 18:13:51
or in the wise words of Cpanel  park it
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Lance on Feb 08, 2009, 18:20:49
:welc: Daniel, :karma:
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Sebby on Feb 08, 2009, 18:34:31
:welc: :karma:
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Glenn on Feb 08, 2009, 18:36:54
If I remember correctly, you can only access the webspace from your IDNet account, but it is viewable from anywhere.
Title: Re: Unable to access web space via registered domain name (using CNAME DNS recor
Post by: Simon on Feb 08, 2009, 18:37:14
:welc:  Daniel!  Hope you get it sorted!
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: kefa on Feb 08, 2009, 20:43:10
Given that it looks like this is not feasible, I've plumped for a workaround using web forwarding instead. Not ideal as it means I have to use url paths (e.g. folders on the server) instead of subdomains to distinguish between different websites that I may want to host.

e.g. www.<mydomain>.co.uk/<sitename> instead of <sitename>.<mydomain>.co.uk

However, many thanks for all the helpful advice...much appreciated!

Cheers, Dan.
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Lance on Feb 08, 2009, 22:58:25
Dan, it might just be worth asking support if they can offer you any advice.  :)
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: kinmel on Feb 08, 2009, 23:14:07
Can't you use a Webhop through EveryDNS (http://www.everydns.com) or similar, rather than forwarding?


If you want to check it out, there is a tutorial about it on Pinwire (http://www.pinwire.com/articles/98/1/EveryDNS-Webhop-Tutorial.html)
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Colin Burns on Feb 09, 2009, 00:05:00
u could always ask to have your account updated so that it uses your domain name instead of a sub domain but i have no idea on the setup IDnet use i dont use there webspace.  but thats cause i have 2 dedicated webservers.
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Dopamine on Feb 09, 2009, 00:38:21
I don't understand what CNAME DNS means, so this may not be helpful, but I have my own domain registered with GoDaddy.com and forwarded to my IDNet webspace. I mask the url so that viewers only ever see my registered dot.com address, not my user.www.idnet.com address, and nobody has any problems accessing my webspace from any line or ISP.



Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: uxbod on Feb 09, 2009, 05:53:12
CNAME = Canonical Name = Alias

Example :-

www.mywebsite.com would be in DNS (Domain Name Services) :-

www  IN A {IP ADDRESS OF THE WEBSERVER}

If you then had another website running on the same server say as a virtual host you could just create a CNAME record

www2 IN CNAME www.mywebsite.com.

Hope that helps to explain what a CNAME record is :)
Title: Re: Unable to access web space via registered domain name (using CNAME DNS record)
Post by: Simon on Feb 09, 2009, 07:47:53
Thanks Uxbod.  :karmic: