Question

Domain server acting weird

Posted December 3, 2019 201 views
DNS

I have recently set up my domain name using some tutorials online.
Now I am getting some weird errors.

The domain name only works for me when I use www.domain.com, so domain.com without the www. Does not work. Some users get a 403 forbidden error and some get the website, but not with the www. added.

I am at a loss here.

then the 3 NS rows

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.

×
1 answer

Hello,

There could be a few possible causes. I would recommend starting with the following:

  • Run a check for both your www and the non-www versions of your domain via the DigitalOcean DNS tool:

https://www.digitalocean.com/community/tools/dns

You need to make sure that both versions return the droplet’s IP.

  • Note that whenever you make a DNS change, it could take up to 48 hours for the DNS cache to clear over the Globe before you could see your DNS changes.

  • Check your Apache/Nginx access and error logs - there you would be able to see exactly why the users are getting the odd errors that you’ve mentioned

  • Make sure that your Apache Vhost or Nginx Server block, includes both your www and the non-www versions of your domain name.

Hope that this helps!
Regards,
Bobby

Submit an Answer