head	1.2;
access;
symbols
	perseant-exfatfs-base-20250801:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.22
	perseant-exfatfs-base:1.2
	cjep_sun2x:1.2.0.20
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.2.0.18
	cjep_staticlib_x-base:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	phil-wifi-20200406:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	pgoyette-compat-0625:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.16
	pgoyette-compat-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.14
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.2.0.12
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	pgoyette-localcount-20161104:1.2
	localcount-20160914:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.10
	pgoyette-localcount-base:1.2
	netbsd-5-2-3-RELEASE:1.1.1.1
	netbsd-5-1-5-RELEASE:1.1.1.1
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.2
	tls-earlyentropy:1.2.0.6
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-5-2-2-RELEASE:1.1.1.1
	netbsd-5-1-4-RELEASE:1.1.1.1
	netbsd-5-2-1-RELEASE:1.1.1.1
	netbsd-5-1-3-RELEASE:1.1.1.1
	agc-symver:1.2.0.8
	agc-symver-base:1.2
	tls-maxphys-base:1.2
	yamt-pagecache-base8:1.2
	netbsd-5-2:1.1.1.1.0.36
	yamt-pagecache-base7:1.2
	netbsd-5-2-RELEASE:1.1.1.1
	netbsd-5-2-RC1:1.1.1.1
	yamt-pagecache-base6:1.2
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	netbsd-5-1-2-RELEASE:1.1.1.1
	netbsd-5-1-1-RELEASE:1.1.1.1
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base:1.2
	bind-9-7-3-P1:1.1.1.1
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.2
	bouyer-quota2-base:1.2
	matt-nb5-mips64-premerge-20101231:1.1.1.1
	matt-nb5-pq3:1.1.1.1.0.34
	matt-nb5-pq3-base:1.1.1.1
	netbsd-5-1:1.1.1.1.0.32
	netbsd-5-1-RELEASE:1.1.1.1
	netbsd-5-1-RC4:1.1.1.1
	matt-nb5-mips64-k15:1.1.1.1
	netbsd-5-1-RC3:1.1.1.1
	netbsd-5-1-RC2:1.1.1.1
	netbsd-5-1-RC1:1.1.1.1
	netbsd-5-0-2-RELEASE:1.1.1.1
	matt-nb5-mips64-premerge-20091211:1.1.1.1
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1.1.1
	matt-nb5-mips64-u1-k1-k5:1.1.1.1
	matt-nb5-mips64:1.1.1.1.0.30
	netbsd-5-0-1-RELEASE:1.1.1.1
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.1.1.1.0.28
	netbsd-5-0-RELEASE:1.1.1.1
	netbsd-5-0-RC4:1.1.1.1
	netbsd-5-0-RC3:1.1.1.1
	netbsd-5-0-RC2:1.1.1.1
	jym-xensuspend:1.1.1.1.0.26
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.1.1.1
	netbsd-5:1.1.1.1.0.24
	netbsd-5-base:1.1.1.1
	matt-mips64-base2:1.1.1.1
	matt-mips64:1.1.1.1.0.22
	mjf-devfs2:1.1.1.1.0.20
	mjf-devfs2-base:1.1.1.1
	netbsd-4-0-1-RELEASE:1.1.1.1.2.2
	wrstuden-revivesa-base-3:1.1.1.1
	wrstuden-revivesa-base-2:1.1.1.1
	wrstuden-fixsa-newbase:1.1.1.1.2.2
	bind-9-5-0-P2:1.1.1.1
	netbsd-3-0:1.1.1.1.0.18
	bind-9-5-0-P1:1.1.1.1
	wrstuden-revivesa-base-1:1.1.1.1
	bind-9-5-0:1.1.1.1
	yamt-pf42-base4:1.1.1.1
	yamt-pf42-base3:1.1.1.1
	hpcarm-cleanup-nbase:1.1.1.1
	yamt-pf42-baseX:1.1.1.1
	yamt-pf42-base2:1.1.1.1
	wrstuden-revivesa:1.1.1.1.0.16
	wrstuden-revivesa-base:1.1.1.1
	yamt-pf42:1.1.1.1.0.14
	yamt-pf42-base:1.1.1.1
	keiichi-mipv6:1.1.1.1.0.12
	keiichi-mipv6-base:1.1.1.1
	matt-armv6-nbase:1.1.1.1
	matt-armv6-prevmlocking:1.1.1.1
	wrstuden-fixsa-base-1:1.1.1.1.2.2
	netbsd-4-0:1.1.1.1.2.2.0.2
	netbsd-4-0-RELEASE:1.1.1.1.2.2
	cube-autoconf:1.1.1.1.0.10
	cube-autoconf-base:1.1.1.1
	netbsd-4-0-RC5:1.1.1.1.2.2
	netbsd-4-0-RC4:1.1.1.1.2.2
	netbsd-4-0-RC3:1.1.1.1.2.2
	netbsd-4-0-RC2:1.1.1.1.2.2
	netbsd-4-0-RC1:1.1.1.1.2.2
	matt-armv6:1.1.1.1.0.8
	matt-armv6-base:1.1.1.1
	matt-mips64-base:1.1.1.1
	hpcarm-cleanup:1.1.1.1.0.6
	hpcarm-cleanup-base:1.1.1.1
	bind-9-4-1-P1:1.1.1.1
	wrstuden-fixsa-base:1.1.1.1.2.2
	wrstuden-fixsa:1.1.1.1.0.4
	netbsd-4:1.1.1.1.0.2
	bind-9-4-1:1.1.1.1
	bind-9-4-0:1.1.1.1
	bind-9-4-0-rc2:1.1.1.1
	ISC:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2009.04.18.13.07.22;	author christos;	state dead;
branches;
next	1.1;

1.1
date	2007.01.27.21.06.14;	author christos;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2007.01.27.21.06.14;	author christos;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1
	1.1.1.1.18.1
	1.1.1.1.26.1;
next	;

1.1.1.1.2.1
date	2007.01.27.21.06.14;	author jdc;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2007.05.17.00.37.20;	author jdc;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2007.01.27.21.06.14;	author wrstuden;	state dead;
branches;
next	1.1.1.1.4.2;

1.1.1.1.4.2
date	2007.06.03.17.21.49;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1.18.1
date	2007.01.27.21.06.14;	author ghen;	state dead;
branches;
next	1.1.1.1.18.2;

1.1.1.1.18.2
date	2008.07.24.22.20.18;	author ghen;	state Exp;
branches;
next	;

1.1.1.1.26.1
date	2009.05.13.19.16.39;	author jym;	state dead;
branches;
next	;


desc
@@


1.2
log
@delete old bind
@
text
@#!/bin/bash
#
#  This script uses the named D-BUS support, which must be enabled in
#  the running named with the named '-D' option, to set the forwarding zones
#  in the running server.
#  
#  One zone argument is required, followed by any number of server IP (v4 or v6)
#  addresses. If the server IP address list is empty, any forwarders for the zone
#  will be removed.
#
#  Usage:
#        SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server IP> [...<server IP>] ] 
#
#  Copyright(C) Jason Vas Dias<jvdias@@redhat.com> Red Hat Inc. 2005
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation at 
#           http://www.fsf.org/licensing/licenses/gpl.txt
#  and included in this software distribution as the "LICENSE" file.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
usage() { echo "Usage: SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server> [...<server>] ]"; }
type=''
if [ $# -eq 0 ]; then
   usage;
   exit 1;
elif [ "$1" = "-t" ]; then
   if [ $# -lt 2 ]; then
      echo '-t option requires an argument.'
      exit 1;
   fi;
   type=$2;
   shift 2;
fi;
if [ $# -lt 1 ]; then
   echo '<zone> first argument required.'
   exit 1;
fi; 
zone='string:'"$1";
shift;
servers='';
if [ $# -gt 0 ]; then
  for svr in $*; do
    servers="$servers string:$svr";
  done
fi;
dbus-send --system --type=method_call --print-reply --reply-timeout=20000 --dest=com.redhat.named /com/redhat/named com.redhat.named.text.SetForwarders $zone $type $servers;
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import bind-9.4.0-rc2 from ftp.isc.org
@
text
@@


1.1.1.1.26.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@@


1.1.1.1.18.1
log
@file SetForwarders was added on branch netbsd-3-0 on 2008-07-24 22:20:18 +0000
@
text
@d1 52
@


1.1.1.1.18.2
log
@Pull up patch (requested by adrianp in ticket #1948):

Update BIND to 9.3.5-P1 to fix CVE-2008-1447 and turn off pthreads.
@
text
@a0 52
#!/bin/bash
#
#  This script uses the named D-BUS support, which must be enabled in
#  the running named with the named '-D' option, to set the forwarding zones
#  in the running server.
#  
#  One zone argument is required, followed by any number of server IP (v4 or v6)
#  addresses. If the server IP address list is empty, any forwarders for the zone
#  will be removed.
#
#  Usage:
#        SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server IP> [...<server IP>] ] 
#
#  Copyright(C) Jason Vas Dias<jvdias@@redhat.com> Red Hat Inc. 2005
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation at 
#           http://www.fsf.org/licensing/licenses/gpl.txt
#  and included in this software distribution as the "LICENSE" file.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
usage() { echo "Usage: SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server> [...<server>] ]"; }
type=''
if [ $# -eq 0 ]; then
   usage;
   exit 1;
elif [ "$1" = "-t" ]; then
   if [ $# -lt 2 ]; then
      echo '-t option requires an argument.'
      exit 1;
   fi;
   type=$2;
   shift 2;
fi;
if [ $# -lt 1 ]; then
   echo '<zone> first argument required.'
   exit 1;
fi; 
zone='string:'"$1";
shift;
servers='';
if [ $# -gt 0 ]; then
  for svr in $*; do
    servers="$servers string:$svr";
  done
fi;
dbus-send --system --type=method_call --print-reply --reply-timeout=20000 --dest=com.redhat.named /com/redhat/named com.redhat.named.text.SetForwarders $zone $type $servers;
@


1.1.1.1.4.1
log
@file SetForwarders was added on branch wrstuden-fixsa on 2007-06-03 17:21:49 +0000
@
text
@d1 52
@


1.1.1.1.4.2
log
@Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
@
text
@a0 52
#!/bin/bash
#
#  This script uses the named D-BUS support, which must be enabled in
#  the running named with the named '-D' option, to set the forwarding zones
#  in the running server.
#  
#  One zone argument is required, followed by any number of server IP (v4 or v6)
#  addresses. If the server IP address list is empty, any forwarders for the zone
#  will be removed.
#
#  Usage:
#        SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server IP> [...<server IP>] ] 
#
#  Copyright(C) Jason Vas Dias<jvdias@@redhat.com> Red Hat Inc. 2005
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation at 
#           http://www.fsf.org/licensing/licenses/gpl.txt
#  and included in this software distribution as the "LICENSE" file.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
usage() { echo "Usage: SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server> [...<server>] ]"; }
type=''
if [ $# -eq 0 ]; then
   usage;
   exit 1;
elif [ "$1" = "-t" ]; then
   if [ $# -lt 2 ]; then
      echo '-t option requires an argument.'
      exit 1;
   fi;
   type=$2;
   shift 2;
fi;
if [ $# -lt 1 ]; then
   echo '<zone> first argument required.'
   exit 1;
fi; 
zone='string:'"$1";
shift;
servers='';
if [ $# -gt 0 ]; then
  for svr in $*; do
    servers="$servers string:$svr";
  done
fi;
dbus-send --system --type=method_call --print-reply --reply-timeout=20000 --dest=com.redhat.named /com/redhat/named com.redhat.named.text.SetForwarders $zone $type $servers;
@


1.1.1.1.2.1
log
@file SetForwarders was added on branch netbsd-4 on 2007-05-17 00:37:20 +0000
@
text
@d1 52
@


1.1.1.1.2.2
log
@Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.
@
text
@a0 52
#!/bin/bash
#
#  This script uses the named D-BUS support, which must be enabled in
#  the running named with the named '-D' option, to set the forwarding zones
#  in the running server.
#  
#  One zone argument is required, followed by any number of server IP (v4 or v6)
#  addresses. If the server IP address list is empty, any forwarders for the zone
#  will be removed.
#
#  Usage:
#        SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server IP> [...<server IP>] ] 
#
#  Copyright(C) Jason Vas Dias<jvdias@@redhat.com> Red Hat Inc. 2005
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation at 
#           http://www.fsf.org/licensing/licenses/gpl.txt
#  and included in this software distribution as the "LICENSE" file.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
usage() { echo "Usage: SetForwarders [ -t <'first' | 'only'> ] <zone> [ <server> [...<server>] ]"; }
type=''
if [ $# -eq 0 ]; then
   usage;
   exit 1;
elif [ "$1" = "-t" ]; then
   if [ $# -lt 2 ]; then
      echo '-t option requires an argument.'
      exit 1;
   fi;
   type=$2;
   shift 2;
fi;
if [ $# -lt 1 ]; then
   echo '<zone> first argument required.'
   exit 1;
fi; 
zone='string:'"$1";
shift;
servers='';
if [ $# -gt 0 ]; then
  for svr in $*; do
    servers="$servers string:$svr";
  done
fi;
dbus-send --system --type=method_call --print-reply --reply-timeout=20000 --dest=com.redhat.named /com/redhat/named com.redhat.named.text.SetForwarders $zone $type $servers;
@


