If you are having DNS problems, ensure that the server has a list of functional resolvers. Resolvers allow the server to find IP addresses corresponding to domain names by communicating with DNS servers.
If you need to add resolvers to your server:
nano /etc/resolv.conf
If no resolvers have been entered into the configuration file:
nameserver $IP
*where $IP is meant to represent the IP address of the resolver.
You should be able to obtain at least 2 resolvers from your data center.
To make sure the resolver is working properly open a terminal session and type:
host example.com
If results are returned to the server, the resolvers have been properly configured.