Website sometimes returns DNS erro
I have been using Digital Ocean for over a year now. Lately (last 6 months~) I have noticed sometimes my sub-domains will return DNS errors. It seems to be random when it happens, and it is hurting the users of my site.
The only way I have been able to fix them is to edit the hosts file on my own computer, which is not productive.
My hosts file (on my DO droplet) is setup like this:
# Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.redhat.tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # The following lines are desirable for IPv4 capable hosts 127.0.0.1 my-site.2006 my-site.2006 127.0.0.1 localhost.localdomain localhost 127.0.0.1 localhost4.localdomain4 localhost4 123.456.789.000 my-site.net sited 123.456.789.000 cp.my-site.net cpd 123.456.789.000 forum.my-site.net forumd 123.456.789.000 wiki.my-site.net wikid # The following lines are desirable for IPv6 capable hosts ::1 my-site.2006 my-site.2006 ::1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
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.×