Bind9 version 9.6.1-P1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 9.6.1-P1

      View the most recent changes for the bind9 port at: bind9.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for bind9.
      The raw portfile for bind9 9.6.1-P1 is located here:
      http://bind9.darwinports.com/dports/net/bind9/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/bind9


      The bind9 Portfile 54550 2009-07-29 13:00:54Z dluke macports.org $

      PortSystem 1.0

      Name: bind9
      Version: 9.6.1-P1

      Category: net
      Maintainers: geeklair.net:dluke
      Platform: darwin freebsd sunos

      Description: Domain Name System server
      Long Description: The BIND DNS Server is used on the vast majority of name serving machines on the Internet, providing a robust and stable architecture on top of which an organization's naming architecture can be built. The resolver library included in the BIND distribution provides the standard APIs for translation between domain names and Internet addresses and is intended to be linked with applications requiring name service.

      Homepage: http://www.isc.org

      distname bind-${version}
      Master Sites: isc:${name}/${version}

      Checksums: md5 e6ce3b355c4e6bf5d66ef100f555da3f sha1 b266511994525b6203af173fd6dda9db58c500a8 rmd160 7421f22f0f30c70ba0324216a4410a2682ecdf1a

      depends_lib port:openssl port:libxml2

      use_parallel_build no
      universal_variant no

      test.run yes
      test.target test

      startupitem.create yes
      startupitem.netchange yes
      startupitem.executable ${prefix}/sbin/named -f

      configure.args --mandir=${prefix}/share/man --with-openssl=${prefix} --with-libxml2=${prefix} --enable-threads --enable-ipv6

      post-destroot {
      # Ensure needed directories
      xinstall -m 755 -d ${destroot}${prefix}/var/named ${destroot}${prefix}/var/run

      # Install the conf file as a sample
      xinstall -o root -m 644 ${filespath}/named.conf ${destroot}${prefix}/etc/named.conf.dist
      reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/named.conf.dist

      # Install the db files as samples
      foreach f "db.127.0.0 db.cache db.localhost" {
      xinstall -o root -m 644 ${filespath}/${f} ${destroot}${prefix}/var/named/${f}.dist
      }

      destroot.keepdirs ${destroot}${prefix}/var/run
      }

      post-destroot {
      ui_msg "******************************************************"
      ui_msg "* To setup named to run, you need to copy named.conf.dist"
      ui_msg "* to named.conf:"
      ui_msg "* sudo cp ${prefix}/etc/named.conf.dist ${prefix}/etc/named.conf"
      ui_msg "* and edit as needed. If you use the default zone files for"
      ui_msg "* 127.0.0, localhost, and the cache, you also need to copy"
      ui_msg "* those files:"
      ui_msg "* sudo cp ${prefix}/var/named/db.127.0.0.dist ${prefix}/var/named/db.127.0.0"
      ui_msg "* sudo cp ${prefix}/var/named/db.cache.dist ${prefix}/var/named/db.cache"
      ui_msg "* sudo cp ${prefix}/var/named/db.localhost.dist ${prefix}/var/named/db.localhost"
      ui_msg "******************************************************"
      }

      Variant: dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} {
      depends_lib-append path:bin/mysql_config5:mysql5
      patchfiles-append patch-configure
      patchfiles-append patch-contrib-dlz-config.dlz.in
      # Threads are not safe when bind9 is compiled with dlz
      configure.args-delete --enable-threads
      configure.args-append --with-dlz-mysql=${prefix}/bin/mysql_config5 --disable-threads
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/bind9
      % sudo port install bind9
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching bind9
      ---> Verifying checksum for bind9
      ---> Extracting bind9
      ---> Configuring bind9
      ---> Building bind9 with target all
      ---> Staging bind9 into destroot
      ---> Installing bind9
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using bind9 with these commands:
      %  man bind9
      % apropos bind9
      % which bind9
      % locate bind9

     Where to find more information:

    Darwin Ports



    Lightbox this page.