I have my server, which is hosted in datacenter, and there is a website and a database installed on this server. DNS servers for the domain name are the default ones of the domain name registrator.
Sometimes such a problem takes place: a website or a database (to put it simply the server) can not be accessed by its domain name. But they can be accessed by the server's IP address without any problem. I guess the problem somehow connected with DNS service, but I'm a little confused about how to fix it.
In the situation like this what steps should I go through to fix it when the problem occurs and avoid (if it is possible) it in the future?