I’ve added a new DNS domain, which is ’ mydomainname.io ’ without ‘www’, and in this DNS domain, I have made two things

  1. add a 'A record’, which is : @ , ip address.
  2. add a 'CName record’, which is : * , mydomainname.io.

when everything is complete, I can go to the mydomainname.io however can’t reach to www.mydomainname.io.

I followed some previously solutions like this one https://www.digitalocean.com/community/questions/domain-with-and-without-www,
say in the CName record:

Enter Name: www
Enter Hostname: @

but when I did this, the result turned to be
www , mydomainname.io.

and nothing changes afterwards, I still can’t reach to www.mydomainname.io

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi @helxsz, I just took a look at your account and it looks like the www.yourdomain.io is properly set up. It also resolves fine for me locally:

~ 👉  nslookup www.domain.io

Non-authoritative answer:
www.domain.io   canonical name = domain.io.
Name:   domain.io

Are you still experiencing this issue? Try clearing your computer’s DNS cache and see if that helps.

Thanks, it is well solved.