Upgrade procedure for Bind 9.5.1b1                             Sean Boran/29.9.08
----------------------------------
Prerequisites: 
  This new version of bind needs a new grep and a /dev/poll.

  wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/grep-2.5.1a-sol8-sparc-local.gz
  gunzip grep-2.5.1a-sol8-sparc-local.gz
  pkgadd -d grep-2.5.1a-sol8-sparc-local


cd /opt/install
wget ftp://ftp.freenet.de/pub/ftp.isc.org/isc/bind9/9.5.1b1/bind-9.5.1b1.tar.gz
   cd bind-9.5.1b1
   export GREP=/usr/local/bin/grep
   ./configure
   
   rm -f  /tmp/usr/local
   umask 027
   /usr/local/bin/make install DESTDIR=/tmp

   cd /tmp/usr/local
   strip bin/* sbin/* lib/*
   \rm -rf include
   tar cf - * | compress > bind-9.5.1b1_dist.tar.Z
   
   cd /dns/usr/local
   cp /tmp/usr/local/bind-9.5.1b1_dist.tar.Z .
   tar cvf - bin lib man sbin | gzip > pre-9.5.1b1_dist.tgz
   

   ## Create /dev/poll
   cd /dns/dev 
   mknod poll c 138 0 
   chgrp sys random
   chmod 644 random
   
   
   
   ## now we stop the old one, and upgrade
   /etc/init.d/dns stop

   cd /dns/usr/local
   zcat bind-9.5.1b1_dist.tar.Z| tar xvf -
   chgrp -R named *


   ## start the new one, test
   /etc/init.d/dns start

   ## Monitoring that all is OK
   Watch syslog...
         tail -500 /var/adm/messages | grep named | grep error
         log|  grep named
         
   Test remote queries locally & remotely with host or nslookup





Tuning
--------------------------------------------
/dns/etc/named.options.conf
logging {
  // disable noisy EDNS messages in Bind 9.5.1
  category edns-disabled { null; };
};


Aug  4 11:13:27 ns2 named[7029]: [ID 873579 daemon.warning] client 193.44.44.44#1354: view internal: ns_client_replace() failed: out of memory
In /dns/etc/named.options.conf, uncomment the line:
        //datasize  20M;


/dns/etc/named.internal.conf : forward private address or provide an empty file to avoid warning like "RFC 1918 response from Internet for 12.66.185.10.in-addr.arpa"

zone "10.IN-ADDR.ARPA" {
  type           forward;
  forwarders { 1.2.3.4; };
  forward only;
};
zone "16.172.IN-ADDR.ARPA" {
  type           forward;
  forwarders { 1.2.3.4; };
  forward only;
};
zone "31.172.IN-ADDR.ARPA" {
  type           forward;
  forwarders { 1.2.3.4; };
  forward only;
};

or:
zone "168.192.IN-ADDR.ARPA" {
	type master;
	file "empty";
};
empty:
@ 10800 IN SOA <name-of-server>. <contact-email>. (
	       1 3600 1200 604800 10800 )
@ 10800 IN NS <name-of-server>.