How To Configure Bind as a Caching and Forwarding DNS Server

glenn0

Well-Known Member
Jul 23, 2012
67
2
8
cPanel Access Level
Website Owner
Hi,

Thanks for the reply, although I'm unsure what you are asking, sorry. My WHM/BIND setup is the default setup if that helps?

If I refer to the howto I mentioned above, should I be following what it says but using named.conf instead of named.conf.options it mentions?

Again, thank you for any help with this.
 

glenn0

Well-Known Member
Jul 23, 2012
67
2
8
cPanel Access Level
Website Owner
I guess you have centos. You have to add the code in your named.conf file,
Code:
listen-on port 53 { 127.0.0.1; any; };
allow-query     { localhost; any; };
allow-query-cache       { localhost; any; };
Um ,you can refer : http://www.tecmint.com/install-caching-only-dns-server-in-centos/

Note that you should not do installation part, since BIND already installed by cpanel.. Just refer the configurations
Thank you very much - everything seems to be working fine. The initail query is obviously slower, but all subsequent requests are instant, which is what I was looking for.

Regards.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

I am happy to see you were able to implement this custom workaround. Thank you for updating us with the outcome.