Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How do i setup dns forwarders server for unresolved dns queries?

Discussion in 'Bind/DNS/Nameserver' started by whiterasta, Oct 15, 2009.

  1. whiterasta

    whiterasta Registered

    Joined:
    Oct 15, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello there,

    I was wondering how do i setup my cpanel whm to forward dns queries to other servers if it does not have it in its own "database".

    As i have notice when i config my laptop for example to use my server (the cpanel) as my dns server, it will only resolve the websites that it hosts and will not forward dns queries on.

    yes the server itself has a few other public dns servers config on.

    any help would be appreciated.

    Thanks,

    Jonathan
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    If this is really needed, it should be restricted to only trusted IP addresses using an ACL in your BIND configuration (named.conf) file.

    Path: /etc/named.conf

    Here is an example ACL:
    Code:
    acl customallow {
            127.0.0.1;
            1.2.3.4;
    };
    In the above example, replace "1.2.3.4" with the (preferably static) WAN/public IP address of your laptop or the gateway it connects from. This is not recommended if you connect from a dynamic IP address, as you would have to maintain (update/edit) the configuration each time the dynamic IP address changes.

    Once that is completed, then ensure the options section in your BIND named.conf has the following line added (assuming there is not yet an "allow-recursion" entry already present):

    Look for the section beginning with "options {" and insert the following within:
    Code:
    allow-recursion { customallow; };
    Here is a very basic example of the options section, with the new entry:
    Code:
    options {
    
    allow-recursion { customallow; };
    
    };
    Do not use this as your entire options section; only insert the new line into your existing options section, preserving any existing entries.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice