Forums

CNAME pointing at webapp but no success

Hi,

this is how I setup my domain for my webapp

Screenshot of alfahosting.de

Now I have two questions:

  1. Why isn't it working?
  2. Why can't I access my webapp by the CNAME webapp-205330.pythonanywhere.com directly?

Thanks

  1. Try deleting both of your A records and see if it works.
  2. The CNAME is like a server address for pythonanywhere. So here is my take- when you visit a pythonanywhere website, you have the url in the header. The server looks at the url and pulls up the website that it is looking for. That way, pythonanywhere can serve multiple websites under one server, or something like that.

I deleted the A records. No success right now. Can you look into my webapp config? Did I miss something?

Did you give it enough time to propagate?

It looks like it's all sorted out now -- at least, when I visit the domain you have configured on the "Web" tab, I see a Django app. Did you work out what was wrong?

Yeah. Basically I changed the DNS settings to this

Screenshot of Alfahosting.de

and I ... well I just waited for 2-3 hours.

Thanks! One thing you might want to tweak -- though I can't see it in that screenshot -- is the "TTL". That's the "Time to live" for your domain name settings, and the lower you set it, the less time it takes for DNS changes to propagate through the network. There is a cost in that -- if it's too low, then DNS lookups for your domain take longer because they're not cached.

We tend to use 300 seconds for our own domains, which we find is a good compromise between speedy propagation and fast lookup.