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.

Updating Bind on RH7.3

Discussion in 'Bind / DNS / Nameserver Issues' started by DigiCrime, Feb 13, 2006.

  1. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Were looking to update bind on a Redhat 7.3 machine

    rpm -qa shows this
    bind-devel-9.2.1-1.7x.2
    ypbind-1.10-7
    bind-utils-9.2.1-1.7x.2
    bind-9.2.1-1.7x.2


    How would go about updating bind without breaking the system ? Wouldnt a Cpanel update not reinstall the bind version it thinks should be there ?
     
  2. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Bind Upgrade

    Hi,

    No; cPanel doesn't perform any upgrades to bind once it's installed.
    For 7.3 upgrade I recommend downloading the source rpm and just building it yourself.

    wget http://people.redhat.com/~jvdias/BIND/bind-9.3.1-2.src.rpm
    rpmbuild --rebuild bind-9.3.1-2.src.rpm
    /etc/init.d/named restart

    That should do it.
     
  3. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    I meant when you run a cpanel update, just normal upcp or even a forced update does it not reinstall the bind version that it thinks should be there???, meaning no matter what *I* install it'll overwrite that version I did install

    Also the latest version is 9.3.2

    Installing throws out this error

    error: failed build dependencies:
    postgresql-devel is needed by bind-9.3.1-2


    However postgresql isnt used on this sytem I can do a nodep install im guessing ?
     
  4. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Hi Digi,

    That's right, upcp will NOT overwrite the version of Bind that is installed.

    I'm guessing that yeah; you either need to do --nodeps or install that dev package :D
     
  5. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Strange... really thought it did... :confused: Thanks Jay
     
  6. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    heres what I get

    In file included from include/isc/net.h:90,
    from ../include/isc/netaddr.h:24,
    from ../include/isc/interfaceiter.h:46,
    from interfaceiter.c:33:
    ../include/isc/ipv6.h:63: redefinition of `struct in6_addr'
    ../include/isc/ipv6.h:81: redefinition of `struct sockaddr_in6'
    In file included from ../include/isc/netaddr.h:24,
    from ../include/isc/interfaceiter.h:46,
    from interfaceiter.c:33:
    include/isc/net.h:172: redefinition of `struct in6_pktinfo'
    include/isc/net.h:215: warning: redefinition of `in_port_t'
    /usr/include/netinet/in.h:89: warning: `in_port_t' previously declared here
    make[3]: *** [interfaceiter.lo] Error 1
    make[3]: Leaving directory `/usr/src/redhat/BUILD/bind-9.3.1/lib/isc/unix'
    make[2]: *** [subdirs] Error 1
    make[2]: Leaving directory `/usr/src/redhat/BUILD/bind-9.3.1/lib/isc'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/usr/src/redhat/BUILD/bind-9.3.1/lib'
    make: *** [subdirs] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.53656 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.53656 (%build)
     
  7. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
  8. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    lovely...guess I could try and attempt to leave that out

    --prefix=/usr \
    --exec-prefix=/usr \
    --bindir=/usr/bin \
    --sbindir=/usr/sbin \
    --sysconfdir=/etc \
    --datadir=/usr/share \
    --includedir=/usr/include \
    --libdir=/usr/lib \
    --libexecdir=/usr/libexec \
    --localstatedir=/var \
    --sharedstatedir=/usr/com \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info --with-libtool --localstatedir=/var \
    --enable-threads \
    --enable-ipv6 \
    --with-pic \
    --with-openssl=/usr \
    --enable-libbind

    Thanks anyway
     
  9. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Hi,

    I can't remember off the top of my head if it's enabled by default or not; you may need to specify:

    --disable-ipv6
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Strictly speaking it will, but since RH7.3 went EOL years ago it's unlikely but possible if you'e getting OS updates from FedoraLegacy. In that case, as part of the sysup run which is part of upcp, it would be up/downgraded from whatever you manually build.
     
  11. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Chirpy,

    You might want to double check on that. I believe it was disabled in sysup after the caching-nameservers incident that caused lots of servers to break when bind was updated. Even if you look in the most recent STABLE /scripts/sysup you'll see a comment to eventually readd it:

    #readd bind9
    @SYSPKGS = qw(
    portupgrade openssh exim
    rdate bash ncftp
    wget jpeg python
    imap-uw png proftpd
    xpm i18ntools compat3x
    );

    So, no, if he runs a upcp --force it will *not* overwrite his new install of bind during the sysup; which is why I said that :D
     
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Just tried sysup:

    /scripts/sysup
    checkyum version 20.1
    bandmin is up to date (Thu Jul 28 14:11:19 2005)
    portsentry is up to date (Wed Jan 30 02:02:40 2002)
    bind is installed and is the latest version.
    bind-devel is installed and is the latest version.
    bind-utils is installed and is the latest version.

    bzip2 is installed and is the latest version.
    expect is installed and is the latest version.
    freetype is installed and is the latest version.
    freetype-devel is installed and is the latest version.
    gcc is installed and is the latest version.
    gd is installed and is the latest version.
    gd-devel is installed and is the latest version.
    gd-progs is installed and is the latest version.
    gnupg is installed and is the latest version.
    lynx is installed and is the latest version.
    openssh is installed and is the latest version.
    openssh-clients is installed and is the latest version.
    openssh-server is installed and is the latest version.
    openssl is installed and is the latest version.
    openssl-devel is installed and is the latest version.
    perl-CPAN is installed and is the latest version.
    sharutils is installed and is the latest version.
    wget is installed and is the latest version.
    XFree86-devel is installed and is the latest version.
    XFree86-libs is installed and is the latest version.

    So it does check the bind versions. The problem with the caching-nameserver has nothing to do with the bind rpms themselves, it's the separate caching-nameserver rpm which causes that problem. Not sure where you're looking in sysup (or which TREE - I'm looking in EDGE), but the bind rpms are checked for updates for most OS's and will be upgraded if need be.
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    And just to prove it:

    root@homer [/scripts]# rpm -e --justdb --nodeps bind-devel
    root@homer [/scripts]# /scripts/sysup
    checkyum version 20.1
    bandmin is up to date (Thu Jul 28 14:11:19 2005)
    portsentry is up to date (Wed Jan 30 02:02:40 2002)
    Gathering header information file(s) from server(s)
    Server: CentOS-3.6 - Base
    Server: CentOS-3.6 - Updates
    Finding updated packages
    Downloading needed headers
    bind-devel-20-9.2.4-7_EL3 100% |=========================| 20 kB 00:00
    bind is installed and is the latest version.
    bind-utils is installed and is the latest version.
    bzip2 is installed and is the latest version.
    expect is installed and is the latest version.
    freetype is installed and is the latest version.
    freetype-devel is installed and is the latest version.
    gcc is installed and is the latest version.
    gd is installed and is the latest version.
    gd-devel is installed and is the latest version.
    gd-progs is installed and is the latest version.
    gnupg is installed and is the latest version.
    lynx is installed and is the latest version.
    openssh is installed and is the latest version.
    openssh-clients is installed and is the latest version.
    openssh-server is installed and is the latest version.
    openssl is installed and is the latest version.
    openssl-devel is installed and is the latest version.
    perl-CPAN is installed and is the latest version.
    sharutils is installed and is the latest version.
    wget is installed and is the latest version.
    XFree86-devel is installed and is the latest version.
    XFree86-libs is installed and is the latest version.
    Resolving dependencies
    Dependencies resolved
    I will do the following:
    [install: bind-devel 20:9.2.4-7_EL3.i386]
    Downloading Packages
    Getting bind-devel-9.2.4-7_EL3.i386.rpm
    bind-devel-9.2.4-7_EL3.i3 100% |=========================| 2.1 MB 00:09
    Running test transaction:
    Test transaction complete, Success!
    bind-devel 100 % done 1/1
    Installed: bind-devel 20:9.2.4-7_EL3.i386
    Transaction(s) Complete
     
  14. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Thought so :D Thanks for the help ill update my thread later on after I get some sleep whether or not the config I ran will work, to tired to mess with it any further... the locatestatedir isnt correct so this is where I needed to change it but again ill confirm later on

    -R
     
  15. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Chirpy,

    Nobody every said to remove the rpm :p
    I'm a little surprised you said that since you even put "--justdb" in your rpm -e.
    Installing over the package with the source isn't going to make it re-install during upcp since the rpm db will show the original version still installed. Of course it would install if a package is missing; as is part of the usefulness of upcp.
     
  16. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No. The point is that sysup does check the installed version of rpms and if they're either missing or older than those available they will be upgraded - including the bind rpms.
     
  17. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    And to prove that it will upgrade the bind rpms, I installed an old version of bind-devel:

    rpm -qa bind-devel
    bind-devel-9.2.1-1.7x.2


    Then ran sysup and it upgraded the rpm:

    checkyum version 20.1
    bandmin is up to date (Thu Jul 28 14:11:19 2005)
    portsentry is up to date (Wed Jan 30 02:02:40 2002)
    bind is installed and is the latest version.
    bind-utils is installed and is the latest version.
    bzip2 is installed and is the latest version.
    expect is installed and is the latest version.
    freetype is installed and is the latest version.
    freetype-devel is installed and is the latest version.
    gcc is installed and is the latest version.
    gd is installed and is the latest version.
    gd-devel is installed and is the latest version.
    gd-progs is installed and is the latest version.
    gnupg is installed and is the latest version.
    lynx is installed and is the latest version.
    openssh is installed and is the latest version.
    openssh-clients is installed and is the latest version.
    openssh-server is installed and is the latest version.
    openssl is installed and is the latest version.
    openssl-devel is installed and is the latest version.
    perl-CPAN is installed and is the latest version.
    sharutils is installed and is the latest version.
    wget is installed and is the latest version.
    XFree86-devel is installed and is the latest version.
    XFree86-libs is installed and is the latest version.
    Gathering header information file(s) from server(s)
    Server: CentOS-3.6 - Base
    Server: CentOS-3.6 - Updates
    Finding updated packages
    Downloading needed headers
    Resolving dependencies
    Dependencies resolved
    I will do the following:
    [update: bind-devel 20:9.2.4-7_EL3.i386]
    Downloading Packages
    Running test transaction:
    Test transaction complete, Success!
    bind-devel 100 % done 1/2
    Completing update for bind-devel - 2/2
    Updated: bind-devel 20:9.2.4-7_EL3.i386
    Transaction(s) Complete
     
Loading...

Share This Page