My company's website went offline briefly somehow- a colleague just mentioned that they were getting an error page whenever trying to view any of the pages on the site.
I looked at the site, and was getting the same error when trying to view any pages on it for about 5 minutes.
The error said:
Site cannot be reached. The server DNS address could not be found
However, the site is now back up and running, and everything appears to be working as normal again. I am responsible for the development of the site, and have been making some changes to it (adding new features, fixing existing bugs, etc), & pushing those changes to the server using
Git as and when a bug fix or new feature is complete.
However, I had not made any changes to the live version prior to it going offline- the last change I pushed to the server was yesterday, and the site had been fully functioning after that right up until it seemingly randomly went offline.
What are the possible causes for this, and is there any way I can prevent/ minimise the risk of it happening again? My thought was that it could have possibly been something to do with where the site is hosted? Maybe the host restarted their servers or something?