If you have your own namerservers or you are using nameservers provided by host, and these nameservers aren’t working :
Edit the file /etc/resolv.conf and put in the IP’s of the namerservers.
Write in the following
where xx.xx.xx.xx = IP of namerserver.
Hit ctrl + x and save the changes.
restart named service
service named restart
You are done.