Can't acces my domain without www

July 2, 2019 119 views
Apache

Hello guys,

I’m having a problem with accessing my web without www.
When I am trying to access it by www.domain.com it’s OK.
When I am trying to access it by domain.com I get “This site can’t be reached”.

I saw not only I had this problem but everything what I was looking here and in Google didn’t helped me to solve this problem.

I bought a domain and I changed it DNS to digitalocean DNS. Then I added a domain in digitalocean control panel.

1 Answer

Hi! There could be several reasons that would cause your site to be “unreachable.”

Often times, when you make changes to DNS, it can take several hours for the changes to fully propagate. DNS servers also cache information, so if you were accessing your site before the change, your DNS servers might have stale info.

You can test your domain name DNS here:

https://dns.google.com/query?name=www.domain.com
https://dns.google.com/query?name=domain.com

Those should return with the IP address you configured in DigitalOcean Domains. If not, you may need to double-check your changes and make sure the record for domain.com has a record (an “A record” or a “CNAME”, perhaps) that resolves to the correct place.

If those tests are successful, then you may need to wait until your DNS servers refresh. If possible, try to confirm that it works with a colleague or friend on a different internet connection.

Hope this helps, let us know if you have further questions or issues.

Have another answer? Share your knowledge.