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!

Bind on Centos 5

Discussion in 'Bind/DNS/Nameserver' started by adapter, Jul 4, 2007.

  1. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    166
    Hi

    i got a centos 5 server but i have problem with bind, the service is up and running but sites dont work, checking on dnsreport it report lameserver, try to dig it from localhost

    dig domain.com @localhost

    ; <<>> DiG 9.3.3rc2 <<>> domain.com @localhost
    ; (1 server found)
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    these are the rpm packet installed

    ypbind-1.19-7.el5
    bind-libs-9.3.3-8.el5
    bind-utils-9.3.3-8.el5
    bind-9.3.3-8.el5
    bind-devel-9.3.3-8.el5

    how can i fix the problem?
     
  2. Nhojohl

    Nhojohl Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    166
    Same problem here... Running the x86_64 version...
     
  3. Focus

    Focus Member

    Joined:
    Feb 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Try this:

    cd /scripts;
    service named stop
    killall -9 named
    mv /etc/named.conf /etc/named.old
    ./rebuildnamedconf > /etc/named.conf
    ./fixndc
    ./fixndc
    ndc status
     
  4. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    166
    this have fix my problem but after 10 hours i have again the DNS offline!!
     
  5. areh

    areh Active Member

    Joined:
    Jul 26, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    156
    Same her. It appears fixed for some hours, then it resets back and fails. This is the second CentOS5 install I am having this problem with (clean install: Just Base preinstalled).
     
  6. imerc

    imerc Registered

    Joined:
    Aug 7, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    same here. CentOS 5 on x86 (32bit) with whm/cpanel 11 .

    the solution above worked for me. my dns does respond now.
     
  7. ToddShipway

    ToddShipway Well-Known Member

    Joined:
    Nov 13, 2006
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Houston, TX
    Check /etc/named.conf for multiple views.

    i.e.
    Code:
    view "localhost_resolver"
    {
    
    view "internal"
    {
    
    etc.
    
    Remove the multiple view configuration, restart named and it should work.

    Take a look at http://forums.cpanel.net/showthread.php?t=69447 as both are shown. With multiple views and how it was modified without multiple views.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mludwig

    mludwig Member

    Joined:
    Oct 9, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    misconfigured multiple views

    The external view's correct configuration would be:
    Code:
    match-clients        { !localnets; !localhost; any; };
    match-destinations    { localhost; };
    
    This solved the "query refused" error I was getting for external queries.
     
  9. tomfra

    tomfra Well-Known Member

    Joined:
    Sep 30, 2002
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    The solution from mludwig works for me! Thanks a lot!

    To cPanel staff: don't you think it would be appropriate to actually fix this problem right after cPanel installation and check the named config during upcp? I mean, it's such a simple fix but I wasted 3+ days searching for a solution because the cPanel installation of Bind is flawed.

    Tomas
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. rgrocha

    rgrocha Member

    Joined:
    Aug 9, 2007
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    53
    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