Community Forums
Connect with us on LinkedIn
Community Notice
Closed Thread
Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Results 16 to 30 of 73
  1. #16
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default

    Quote Originally Posted by dgbaker
    The quickest and easiest way to block this is to do the following;

    edit /etc/named.conf

    add the following just before logging

    options {
    directory "/var/named/";
    version "Not telling you";
    allow-transfer { IP's that are allowed (slaves/master); };
    };

    save it and restart named.

    Also cPanel will NOT overwrite this change.

    To test, run nslookup from your desktop
    C:\>nslookup
    Default Server: nsctor1.bellnexxia.net
    Address: 209.226.175.223

    >

    type
    > ls domain.com

    You should get something like the following;

    > ls virtual-hosting.ca
    [nsctor1.bellnexxia.net]
    *** Can't list domain virtual-hosting.ca: Query refused
    i do this instruction but in nslookup.exe , it show me list of names ! what's th eproblem.

    regard
    Mahdionline

  2. #17
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    Quote Originally Posted by jeffheld
    find out if your dns server is fuc*i* lame.
    dnstuff.com

    http://www.dnsstuff.com/tools/lookup...l.net&type=ALL

    should like the above. also...

    http://www.dnsreport.com/tools/dnsre...ain=cpanel.net

    will give you more info and let you know what needs to be setup correctly. otherwise.. hand over your ip :P
    Dont' trust everything at dnsreport.com. They will red flag things that are still permissible by the DNS RFC (such as stealth nameservers). It unfortunately can give people a false sense that something is wrong, when in fact there is nothing wrong.

  3. #18
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    This is what I get:

    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: missing ';' before '(slaves'
    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: missing ';' before '/'
    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: expected IP match list element near '/'

    LINE 21 is : allow-transfer { IP's that are allowed (slaves/master);

  4. #19
    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

    Quote Originally Posted by icanectc
    This is what I get:

    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: missing ';' before '(slaves'
    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: missing ';' before '/'
    Oct 20 10:31:50 *** named[******]: /etc/named.conf:21: expected IP match list element near '/'

    LINE 21 is : allow-transfer { IP's that are allowed (slaves/master);
    Well, it should read:

    allow-transfer { IP's that are allowed (slaves/master); };

    Note the number of semi-colons. So, if you want to allow transfer requests from 11.22.33.44 and 44.33.22.11, then that line would look like this:

    allow-transfer { 11.22.33.44; 44.33.22.11; };
    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

  5. #20
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    Its the last } I did not add. It's working now thanks!

  6. #21
    Member
    Join Date
    Jun 2004
    Posts
    7

    Default help me with my server I have problems with dns zones

    I have prorbles with my dns zones all domains go to a main ip address , I delete account in whm and create again but not work
    what is the problem ?
    Thanks

  7. #22
    Member
    Join Date
    Jun 2004
    Posts
    7

    Default alguien que hable español para que me ayude con los dns zones ke no sirven!!!

    alguien que hable español para que me ayude con los dns zones ke no sirven en mi servidor dedicado
    tengo problemas con el dns zone no se como editarlo y arreglarlo.
    Thanks

  8. #23
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default

    I do the instruction ,but now when i go to nslookup.exe and type
    > is adomainname.com

    it show me a list of names and not show your written message.
    what's the problem ?

    regrad
    Mahdionline

  9. #24
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    It's not `is domain.com` it is `ls domain.com` lowercase L
    Regards,
    David
    Forum Moderator

  10. #25
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default

    I do the instruction but now when i go to nslookup.exe and type

    > is adomainame.com

    is show me a list of names !

    What's the problem ?

    Regard
    Mahdionline

  11. #26
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Here is what we are using at the moment. Add this after controls. Make sure that you have no more options as it is will cause bind/named to fail.
    Code:
    acl "slaves" {
            127.0.0.1; localhost;
    };
    
    acl "masters" {
            127.0.0.1; localhost;
    };
    
    acl "trusted" {
            127.0.0.1; localhost;
    };
    
    logging {
    	category lame-servers { null; };
    };
    
    options {
    	statistics-file "/var/run/named/named.stats";
            allow-transfer { slaves; masters; trusted; };
            allow-recursion { trusted; };
            allow-notify { masters; };
    };
    There slaves are the Slave DNS servers, masters are the Master DNS servers and trusted are the server you trust and allow to do recursive lookups and request the DNS zones in full. Usually save to keep by default.

    This will also generate the statistics file to the "/var/run/named/named.stats" (not forget to execute "/usr/sbin/ndc stats" prior!)
    It could be used by MRTG for example.

    P.S. I'm not sure if the allow-notify should include masters only. It is supposed to add there hosts which may force zone update, isn't it? So they should be the Master DNS servers only? Anyone who using DNS clusters to clear this up?
    Last edited by ispro; 10-28-2005 at 10:40 AM.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  12. #27
    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

    Probably overkill using so many ACL's. This is what I use, which will achieve the same thing:

    Code:
    acl "trusted" {
            11.22.33.44;
            44.33.22.11;
            66.55.44.33;
            127.0.0.1;
    };
    
    options {
            directory "/var/named";
            version "not currently available";
            allow-recursion { trusted; };
            allow-notify { trusted; };
            allow-transfer { trusted; };
    };
    Where the IP addresses all the other participants in your DNS cluster, including the server you are on, which makes it nice and easy to duplicate for all your servers.
    Last edited by chirpy; 03-08-2006 at 03:18 PM.
    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

  13. #28
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Your setup is has sense also.

    We just would like to tune each setting using "security through obscurity" method where everything shoulb be blocked, and then necessary things allowed only.

    Do you have any valid information that using several ACLs in named.conf may slow down it?
    I heard nothing about that.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  14. #29
    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

    I doubt that it would make any difference to performance at all.
    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

  15. #30
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Quote Originally Posted by chirpy
    Code:
    acl "trusted" {
            11.22.33.44;
            44.33.22.11;
            66.55.44.33;
    };
    
    options {
            directory "/var/named";
            version "not currently available";
            allow-recursion { trusted; };
            allow-notify { trusted; };
            allow-transfer { trusted; };
    };
    I have the same set up, but I don't have the 'directory "/var/named";' line.
    Why did you add that? Did you run into trouble without it?

Closed Thread
Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Similar Threads & Tags
Similar threads

  1. security problem: cpanel allows DNS zonetransfers for everyone!
    By cyberspirit in forum cPanel and WHM Discussions
    Replies: 72
    Last Post: 02-02-2009, 08:40 AM
  2. cPanel Security Certificate Problem
    By kosbab in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-04-2007, 07:44 PM
  3. Cpanel Security Problem
    By teddymills in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-08-2005, 03:02 PM
  4. Cpanel/WHM security problem
    By H2Hosting.com in forum cPanel and WHM Discussions
    Replies: 25
    Last Post: 07-23-2004, 02:55 PM
  5. New CPanel security problem!!!
    By yaax in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-04-2004, 10:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube