Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 09:38
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default Open DNS Error(DNS Recursion )

Now lets go to the more tricky security issues of bind and how to make bind in a cpanel environment safer.


you have to edit /etc/named.conf:

right after the line:
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};

you add this:

acl "trusted" {
127.0.01;69.33.122.133; 69.56.129.144
};

(these ip addresses should be all of your nameservers who will handle your domains including the local ones that run nameservers on them.

then further down you will see this:

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;

and you want to add right in the next line this:

version "not currently available";
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
};

This will make sure that the dns server does not give out a version number and that recursion, notify and zone transfers are only permitted between the ip addresses in the acl trusted (which we added earlier).

After this is done save the file and then restart bind from whm. If you see an error message then go into the named log file (/var/log) and see what line created a problem. Most likely you missed a space or tab or something.

This addresses pretty much all of my security concerns in bind and you will have a much better and safer time running it that way.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.