Forums

DNS setup

I directed my www domain with cname. How can I redirect the main domain?

do you mean how do you redirect something like domainname.com to www.domainname.com? You should set it up with your DNS registrar (it is different for which domain registrar you are using)

I contacted the company. they demanded "A record" from me.

Please help ??

An "A record" is not a redirect. If they are unable to offer redirection, there are two ways to proceed:

  1. setup two PythonAnywhere webapps (one for domainname.com, and another webapp for www.domainname.com), and use the www CNAME for the www.domainname.com webapp and use an IP address A record for the domainname.com. However, note that this is bad for SEO purposes. (ie. google will think that there are two different sites, and your traffic will be split between them) Also this will be more expensive for you.
  2. use something like cloudflare instead of your domain registrar's domain name server. You can get a free account on cloudflare, and the free tier already allows you to redirect domainname.com to www.domainname.com.