I wanted to update BIND9 on my Debain Jessie Linux system to a newer version than the currently packaged version 9.9. Here are the steps to upgrade it to version 9.11:

This will install the new version of BIND9 to “/usr/local/sbin”. So you can have installed the new version of BIND9 in parallel to the packaged version of Debian Jessie (which resides in “/usr/sbin”). So in case of problems you can always go back to the original BIND9 version.

You now need to modify the start script of BIND9 so that thew new version will be used. You can do that with the following steps:

  1. Stop BIND9 with “service bind9 stop”
  2. Make a backup of the original start script: “cp /etc/init.d/bind9 /etc/init.d/bind9.ORG”
  3. Open “/etc/init.d/bind9” in an editor
  4.  Add the path “/usr/local/sbin” at the end of the path statement so that it looks like “PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin”
  5. Replace all “/usr/sbin/named” to “/usr/local/sbin/named” and all “/usr/sbin/rndc” to /usr/local/sbin/rndc”.
  6. Make a backup of the original service definition: “cp /lib/systemd/system/bind9.service /lib/systemd/system/bind9.service.ORG”
  7. Open “/lib/systemd/system/bind9.service” in an editor
  8. Replace all “/usr/sbin” with “/usr/local/sbin”
  9. Run the following commands:
    ln -s /etc/bind/named.conf /etc/named.conf
    ln -s /etc/bind/rndc.key /etc/rndc.key
  10. Start BIND9 again with “service bind9 start”

Now BIND9 should run with the new version.

Debian Jessie: Upgrade BIND9 to newer version
Tagged on:         

6 thoughts on “Debian Jessie: Upgrade BIND9 to newer version

  • 15.02.2018 at 19:59
    Permalink

    Thank’s a lot for this article.
    It works perfectly.
    Now i can use CAA record with bind with my debian jessie

    nota: there is a little typo error in point (5)
    At the end of the line it is “rndc” and not “rcd”

    Reply
  • 04.09.2018 at 14:40
    Permalink

    Command make and make install not working.

    Reply
  • 06.11.2019 at 22:59
    Permalink

    Thanks, that worked and just upgraded my Bind 9.9.5 to 9.11.0 on Debian 8.
    Just a small remark to get it perfect, there isn’t a small typo in step 5 ?
    (Replace all “/usr/sbin/named” to “/usr/local/sbin/named” and all “/usr/sbin/rndc” to /usr/local/sbin/rncd”.)

    (rndc vs rncd ?)

    Best regards and thanks again !

    Reply
  • 29.05.2021 at 09:31
    Permalink

    Hello from germany

    simply, many thanks.
    i have done step by step and ist works perfectly

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *