Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    1

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

    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. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    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.

Similar Threads & Tags
Similar threads

  1. Add DNS queries to Munin?
    By rnawky in forum Feature Requests for cPanel/WHM
    Replies: 7
    Last Post: 03-26-2012, 05:30 AM
  2. dns server setup
    By erik@delphi in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-17-2009, 10:27 AM
  3. Pre-sales queries - DNS & Multiple Domains Per User
    By Alcedema in forum Database Discussions
    Replies: 1
    Last Post: 09-18-2008, 10:04 AM
  4. DNS Setup - Initial Server Setup
    By tonyxp in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-11-2004, 11:35 AM
  5. Restricting DNS queries: adddns and named.conf
    By Drake in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-03-2002, 09:51 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube