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.

Bind on Centos 5

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

  1. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    Same problem here... Running the x86_64 version...
     
  3. Focus

    Focus Member

    Joined:
    Feb 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    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:
    6
    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:
    1
    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:
    18
    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.
     
  8. mludwig

    mludwig Member

    Joined:
    Oct 9, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  10. rgrocha

    rgrocha Member

    Joined:
    Aug 9, 2007
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
Loading...

Share This Page