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.

How To Configure Bind as a Caching and Forwarding DNS Server

Discussion in 'Bind / DNS / Nameserver Issues' started by glenn0, Oct 2, 2015.

  1. glenn0

    glenn0 Active Member

    Joined:
    Jul 23, 2012
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
  2. lx24

    lx24 Member

    Joined:
    Oct 2, 2014
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    What is your named.conf configuration?
     
  3. glenn0

    glenn0 Active Member

    Joined:
    Jul 23, 2012
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Hi,

    Thanks for the reply, although I'm unsure what you are asking, sorry. My WHM/BIND setup is the default setup if that helps?

    If I refer to the howto I mentioned above, should I be following what it says but using named.conf instead of named.conf.options it mentions?

    Again, thank you for any help with this.
     
  4. lx24

    lx24 Member

    Joined:
    Oct 2, 2014
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I guess you have centos. You have to add the code in your named.conf file,
    Code:
    listen-on port 53 { 127.0.0.1; any; };
    allow-query     { localhost; any; };
    allow-query-cache       { localhost; any; };
    Um ,you can refer : http://www.tecmint.com/install-caching-only-dns-server-in-centos/

    Note that you should not do installation part, since BIND already installed by cpanel.. Just refer the configurations
     
  5. glenn0

    glenn0 Active Member

    Joined:
    Jul 23, 2012
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Thank you very much - everything seems to be working fine. The initail query is obviously slower, but all subsequent requests are instant, which is what I was looking for.

    Regards.
     
  6. lx24

    lx24 Member

    Joined:
    Oct 2, 2014
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Happy to help :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page