The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open DNS

Discussion in 'Bind / DNS / Nameserver Issues' started by webhosting2, Sep 6, 2006.

  1. webhosting2

    webhosting2 Registered

    Joined:
    Sep 6, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    How do I close off recursive access through WHM or SSH?
     
  2. chris74108

    chris74108 Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Removed see skys reply
     
    #2 chris74108, Sep 6, 2006
    Last edited: Oct 3, 2006
  3. gupi

    gupi Well-Known Member

    Joined:
    Apr 27, 2004
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    Also you can take a look at the tutorial from cymru.com.
     
  4. skyhorse

    skyhorse Active Member

    Joined:
    Aug 18, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
  5. angelina_holy

    angelina_holy Well-Known Member

    Joined:
    Aug 6, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  6. skyhorse

    skyhorse Active Member

    Joined:
    Aug 18, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    again, angelina's instructions just like chris's could work in some cases but are not the proper way to do it. White lists for allowed IP addresses is the way to go, check out the two links in the previous posts...
     
  7. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
  8. angelina_holy

    angelina_holy Well-Known Member

    Joined:
    Aug 6, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    recursion no worked in my case , but like skyhorse said if in some cases if there is possibility that it might break the servers , then its best to go with skyhorse solution to White lists the allowed IP addresses

    The link provided by skyhorse

    http://www.skyhorse.org/web-server-...panel-whm-version-10/fixing-open-dns-servers/

    is good one for new users facings open dns problem

    Thanks skyhorse . Guess I was lucky that my server didnt broke . :)
     
  9. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
  10. hamper

    hamper Well-Known Member

    Joined:
    Apr 28, 2006
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    I agree. I made the mistake of doing this now at least twice a day I have to go in
    and redo the named.conf file and restart manually named. Does anyone know how
    to get it to stop going back to the "recursion no" in named.conf and keep the acl
    info I have to keep changing it back to?

    Thanks for any help.
     
  11. levelsupport

    levelsupport Well-Known Member

    Joined:
    Oct 7, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    TO Disable recursive nameservers
    open your /etc/named.conf

    make sure you have this line

    options {
    directory "/var/named";
    allow-recursion { 127.0.0.1; <yourserverip1>; <yourserverip2>;};
    };
     
  12. dyrer

    dyrer Active Member

    Joined:
    Jun 3, 2005
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    I did as you said but dnsreport.com display open dns
     
  13. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    16
    Could you please provide us your named.conf to know what canges you have made.
     
  14. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    I have a question about this.

    Would I need to add every IP address in my server cluster?
     
Loading...

Share This Page