Recent Server Issue
Well it seems that sometime during the night one of the machines that serves as a DNS machine for this server somehow went all wonky and due to one of the scripts, mainly my Technorati Display Rank script, one of the functions for PHP failed miserable because it could not resolve the domain name properly.
I will have to definitely look at fixing the script or at least suppressing the errors so that the script will continue and not disrupt your viewing pleasure.
How did I fix it though?
Well the server is running on Ubuntu and after a quick look at the /etc/networks/interfaces that seemed all fine and dandy but a quick search on Google took me to the Ubuntu forums where someone was having something similar and one of the replies was to check the /etc/resolv.conf file. I did and noticed that it had an entry for the buggered DNS server. I entered 4.2.2.1 and 4.2.2.2 as the DNS machines (they never ever seem to go down), restarted the network service and voila! Everything works again.






Didn’t see any of the errors, glad to see you fixed it though
Perhaps I caught the issue quick then! Oh well no harm done
Good Stuff! Just make sure no packages are installed that will modify it again on a reboot or else you may find yourself in the same boat a while down the road! DHCP and PPPoE packages are usually the ones that will do so.
Well if it happens again I hope I’ll remember what I had to change
Though I haven’t installed anything new in the server so I’m not sure what went on. The main gateway at work was what it was using for a DNS server.
Perhaps code in in a checkdnsrr() function before hand. If it is successful at pulling an A record, continue loading the content, if not - forget about it…..
I’ll look at doing that thanks!