Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    85

    Default closing open dns server

    hi all,

    i've a small problem with my dns server. I followed the directions here in closing my dns server so that it was no longer open. first I used the recursive no; and then found that does close the dns server but it also wont allow my box to be resolved when doing updates. thus the errors I've been getting from whm when doing my updates with cpanel. so I changed it to the {trusted} way. my problem is that whenever there is a update it manually changes my named.conf back to show the recursive no; instead of leaving it the new way. I think there is a command to stop it from overwriting it but i'm at a loss as to what it is.

    can someone perhaps please tell me?

    thanks....
    EZ Web Solutions
    *coming soon*
    EZ Quality Hosting
    -- making your life EZ on the net...

  2. #2
    Member
    Join Date
    Aug 2005
    Posts
    131

    Default

    recursive no;
    is not what you should have used, it should be:

    recursion no;

    That will work, thats what I use on all my box's

  3. #3
    Member
    Join Date
    Apr 2006
    Posts
    85

    Default

    Thank you very much. but when I change it to that, and go back to WHM at the top where the security info is posted I'm back to getting this error.

    a fatal error or timeout occurred while processing this directive]Unable to fetch Web Host Manager Security News. The News server may be down or unreachable
    Which tells me that it again is no longer resolving properly.
    Last edited by hamper; 07-17-2006 at 03:42 PM.
    EZ Web Solutions
    *coming soon*
    EZ Quality Hosting
    -- making your life EZ on the net...

  4. #4
    Member
    Join Date
    Aug 2004
    Posts
    23

    Default

    There is *no* reason why you should use "recursion no" option, rather you should make lists of IP addresses where recursion is allowed... thats why your updates are not working and I'm surprised your Exim still does...

    Have a look at Fixing Open DNS servers
    Last edited by skyhorse; 10-04-2006 at 07:08 AM.

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    113

    Default

    nano -w /etc/named.conf
    Before the line that says “directory /var/named”; (it could be /var, /var/named, etc)

    Put:

    recursion no;

    Save.

    Make sure you can ping your account and google.com afterwards.

    If not /etc/resolv.conf will need to be fixed.

    Server’s IPs should NOT be in /etc/resolv.conf.
    127.0.0.1 should NOT be in /etc/resolv.conf.
    /etc/resolv.conf should contain the outgoing resolvers of the customers datacenter.

    Ping these nameservers to find their IPs
    To find what DC he’s in, as well as to find what nameservers the DC uses:
    http://centralops.net/co/DomainDossier.aspx
    Put in his IP or domain, and click “network whois record”

    Open DNS recursion has been disabled on your server, effectively preventing your server from being used in a DDDoS attack. Foreign users will also no longer be allowed to query your DNS server, thus preventing excessive load on your dns servers.

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    angelina_holy, please stop posting that advice. As has been pointed out in other threads you should not just set "recursion no" and remove IP's from /etc/resolv.conf - it's not the senseible way to disable the recursion issue unless you understand what you are doing.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Aug 2006
    Posts
    113

    Default

    The rescurrion set to no worked for me .. Guess I was lucky
    But seems that it is causing errors for other . so In addition to 127.0.0.1 that line should include all IPs on the server plus other IPs that you want to allow recursion


    pico /etc/named.conf

    options {
    allow-recursion { 127.0.0.1; xxx.xxx.xxx.xxx; };
    };

    Hope this helped a little

    you will find a detail solution at

    http://www.skyhorse.org/web-server-a...n-dns-servers/

Similar Threads & Tags
Similar threads

  1. httpd-DSSL processes not closing, creating HUGE server loads
    By kennyp in forum cPanel and WHM Discussions
    Replies: 75
    Last Post: 12-13-2007, 04:06 PM
  2. open dns servers
    By outlaw web in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 12-03-2007, 03:52 AM
  3. Open DNS
    By webhosting2 in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 12-06-2006, 01:50 AM
  4. Open DNS servers
    By vlee in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 10-05-2006, 07:57 AM
  5. Closing the mail server
    By riostyles in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-24-2006, 06:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube