Your message dated Sun, 22 Oct 2017 13:19:11 +0200
with message-id
<1508671151.815349.1146906880.773a8...@webmail.messagingengine.com>
and subject line Closing bugs in old-old-stable bind9 versions
has caused the Debian Bug report #179758,
regarding bind9: please include cron job for root-server update
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
179758: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=179758
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bind9
Version: 1:9.2.1-2.woody.1
Severity: wishlist
Please include a cronjob to regularly update the d.broot file, as
suggested in the DNS-HOWTO. I'm not sure if it should be installed by
default; including it as an example would be fine with me.
Here's the script I use. It's taken from the DNS-HOWTO, but I made some
Debian-specific changes and fixed the temp file handling:
#!/bin/sh
#
# Update the nameserver cache information file once per month.
# This is run automatically by a cron entry.
#
# Original by Al Longyear
# Updated for BIND 8 by Nicolai Langfeldt
# Miscelanious error-conditions reported by David A. Ranch
# Ping test suggested by Martin Foster
# named up-test suggested by Erik Bryer.
# Fixed temp-file handling by Bas Zoetekouw
# Adjusted for Debian by Bas Zoetekouw
#
OLDROOTDB="/etc/bind/db.root"
HOST=`hostname -f`
(
echo "To: Hostmaster at $HOST <hostmaster>"
echo "From: $0 <root>"
# Is named up? Check the status of named.
case `rndc status 2>&1` in
*refused*)
echo "named is DOWN. root.hints was NOT updated"
echo
exit 0
;;
esac
PATH=/sbin:/usr/sbin:/bin:/usr/bin:
export PATH
# NOTE: /var/named must be writable only by trusted users or this script
# will cause root compromise/denial of service opportunities.
cd /etc/bind 2>/dev/null || {
echo "Subject: Cannot cd to /etc/bind, error $?"
echo
echo "The subject says it all"
exit 1
}
# Are we online? Ping a server that should always be up
case `ping -qnc 1 www.whitehouse.gov 2>&1` in
*'100% packet loss'*)
echo "Subject: root.hints NOT updated. The network is DOWN."
echo
echo "The subject says it all"
exit 1
;;
esac
# put the new root db in a temporary filename on /tmp
# also put the errors in a temporary file
{ NEWROOTDB=`mktemp` && ERRORS=`mktemp`; } || {
echo "Subject: root.hints NOT updated."
echo
echo "Could not create a tempory file; error $?"
exit 1
}
dig @e.root-servers.net . ns > $NEWROOTDB 2> $ERRORS
grep -q "status: NOERROR" $NEWROOTDB
if [ $? -ne 0 ]; then
echo "Subject: The root.hints file update has FAILED."
echo
echo "The root.hints update has failed"
echo "This is the dig output reported:"
echo
cat $NEWROOTDB $ERRORS
exit 1
fi
# now install the new db.root file
{
rm -f $OLDROOTDB.orig &&
cp -p $OLDROOTDB $OLDROOTDB.orig &&
cp -p $NEWROOTDB $OLDROOTDB.new &&
mv $OLDROOTDB.new $OLDROOTDB
} || {
echo "Subject: The root.hints file update has FAILED."
echo
echo "The root.hints update has failed"
echo "The newly downloaded database could not be installed"
}
rm -f $NEWROOTDB $ERRORS
chown root.root $OLDROOTDB
chmod 0644 $OLDROOTDB
/etc/init.d/bind9 restart > /dev/null
echo "Subject: The root.hints file has been updated"
echo
echo "The root.hints file has been updated to contain the following
information:"
echo
cat $OLDROOTDB
echo
echo "The nameserver has been restarted to ensure that the update is complete."
echo "The previous root.hints file is now called $OLDROOTDB.orig."
) 2>&1 | /usr/lib/sendmail -t
exit 0
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux matilda 2.4.20-rmap15b #1 SMP Sat Jan 18 16:57:05 CET 2003 i686
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro
Versions of packages bind9 depends on:
ii libc6 2.2.5-11.2 GNU C Library: Shared libraries an
ii libdns5 1:9.2.1-2.woody.1 DNS Shared Library used by BIND
ii libisc4 1:9.2.1-2.woody.1 ISC Shared Library used by BIND
ii libisccc0 1:9.2.1-2.woody.1 Command Channel Library used by BI
ii libisccfg0 1:9.2.1-2.woody.1 Config File Handling Library used
ii liblwres1 1:9.2.1-2.woody.1 Lightweight Resolver Library used
ii libssl0.9.6 0.9.6c-2.woody.1 SSL shared libraries
ii netbase 4.07 Basic TCP/IP networking system
--- End Message ---
--- Begin Message ---
Version: 1:9.10.3.dfsg.P4-12.3
Hi,
the bind9 bug list grew too much and the Debian BIND team cannot
simply test all the reported bugs against versions not in stable, so
this is mass bug close, as either the version is no longer relevant
(because of old-old-stable 9.8.x or old-stable 9.9.5 or even older
version of bind9) or the bug was already fixed.
However, if you can reproduce the bug with a current version in stable,
please use Debian BTS 'found <bug> <version_you_reproduced_the_issue>'
command to retag the bug and reopen it.
Cheers,
Ondrej
signature.asc
Description: PGP signature
--- End Message ---