Forums

Custom Domain and CNAME

I have registered a domain and provided the CNAME, however, it isn't still working. I'm I doing anything incorrectly?

enter image description here

enter image description here

Can I have multiple CNAMEs?

enter image description here

If you want the website available at www.diogothecoder.com, the right CNAME would be

Prefix: 'www', Value: 'webapp-417428.pythonanywhere.com.'

It should look like this, when tested from Linux command line:

$  host www.diogothecoder.com
www.diogothecoder.com is an alias for webapp-417428.pythonanywhere.com.
webapp-417428.pythonanywhere.com has address 34.206.101.184

But right now you have:

$  host _webapp-417428.diogothecoder.com
_webapp-417428.diogothecoder.com is an alias for www.webapp-417428.pythonanywhere.com.
www.webapp-417428.pythonanywhere.com has address 34.206.101.184

Also you'll need to edit (pencil icon) at PA your webapp's name to include the 'www.' prefix!

also on the pythonanywhere webapp page, you want the domain to be www.diogothecoder.com instead of just diogothecoder.com

When I try to change the prefix to be www, I get an error, is it alright if I add an underscore to the beginning of the prefix as the websites wants to?

enter image description here

I'm not sure, why they call this field as a "label", and why many (when it should be one, imho). I think it's somehow related to this:

1and1.com / configuring-a-cname-for-an-existing-subdomain

1and1.com / creating-a-cname-record-for-a-host-name-that-begins-with-an-underscore

I think the culprit is existing A/AAAA record for www. subdomain which blocks you from creating a CNAME with the same name as prefix. Sources: 1, 2

I have decided to end my hosting with 1&1 and have switched to GoDaddy. I am waiting for 1&1 to transfer my domain to my new provider. In the meantime, I have also bought the domain name DiogoTheCoder.co.uk.

Below is the current setup wondering if this is correct?

enter image description here

enter image description here

Changed the webapp domain to www.DiogoTheCoder.co.uk and the website is now working, how do I implement the ability for users to be able to redirect to my website when they type just DiogoTheCoder.co.uk, no www.

You can set that up with GoDaddy -- this is the appropriate help page on their site -- you need to use the "forward to any site" option.

Thanks, @giles, got it working just took a few hours

Glad you got it working :-)