Caching Dns Requests

If you need to make a large number of DNS requests, you can install bind in caching mode on your server to make those requests run more quickly.

sudo yum install -y caching-nameserver
chkconfig named on
service named start

Then test with this command:

host -v cnn.com localhost

Assuming it works, edit /etc/resolv.conf and add this line at the top:

nameserver 127.0.0.1
Meta