3 # If you are running named and using root.zone as a master, the root.zone
4 # file should be updated periodicly from ftp.rs.internic.net.
6 # $DragonFly: src/etc/namedb/getroot,v 1.2 2005/02/24 21:58:20 dillon Exp $
11 set hostname
= 'ftp.rs.internic.net'
12 set remfile
= domain
/root.zone.gz
13 set locfile
= root.zone.gz
14 set path
= ( /bin
/usr
/bin
/sbin
/usr
/sbin
)
16 fetch
ftp://${hostname}:/${remfile}
17 if ( $status != 0) then
19 echo "Download failed"
21 gunzip
< ${locfile} > root.zone.new
22 if ( $status == 0 ) then
24 if ( -f root.zone
) then
25 mv -f root.zone root.zone.bak
27 chmod 644 root.zone.new
28 mv -f root.zone.new root.zone
29 echo "Download succeeded, restarting named"
34 echo "Download failed: gunzip returned an error"