>On Sat, Aug 14, 1999 at 04:28:31PM -0400, Chris Johnson wrote:
>> You're in the right direction. If your server doesn't know the answer to a
>> question (it's not authoritative and the answer isn't in cache), it'll ask
>> someone else. This may be a root server if no information at all about the
>> request is cached, or it may be something further down the line. (Maybe it
>> already has cached the fact that koobera.math.uic.edu is authoritative for
>> cr.yp.to, but it doesn't know what the mail exchanger is for cr.yp.to.
It won't
> 
>Of course, who the root servers are is something that you have to 
>keep up to date in your bind installation.  That is, bind doesn't
>automatically know who the root servers are.  That's something that
>it looks to a file for.  And it's up to you to keep the file up to
>date.
>

Which brings me to my next question since qmail is dependent on DNS
for proper operation, I downloaded a script from the DNS How-to at
sunsite.unc.edu/LDP...can someone take a look at it to see if it
is workable for Linux via cron?

#!/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
#
(
 echo "To: hostmaster <hostmaster>"
 echo "From: system <root>"
 echo "Subject: Automatic update of the root.hints file"
 echo

 PATH=/sbin:/usr/sbin:/bin:/usr/bin:
 export PATH
 cd /var/named

 # Are we online?  Ping a server at your ISP
 case `ping -qnc some.machine.net` in
   *'100% packet loss'*)
        echo "The network is DOWN. root.hints NOT updated"
        echo
        exit 0
        ;;
 esac

 dig @rs.internic.net . ns >root.hints.new 2>&1

 case `cat root.hints.new` in
   *NOERROR*)
        # It worked
        :;;
   *)
        echo "The root.hints file update has FAILED."
        echo "This is the dig output reported:"
        echo
        cat root.hints.new
        exit 0
        ;;
 esac

 echo "The root.hints file has been updated to contain the following   
information:"
 echo
 cat root.hints.new

 chown root.root root.hints.new
 chmod 444 root.hints.new
 rm -f root.hints.old
 mv root.hints root.hints.old
 mv root.hints.new root.hints
 ndc restart
 echo
 echo "The nameserver has been restarted to ensure that the update is
complete."
 echo "The previous root.hints file is now called   
/var/named/root.hints.old."
) 2>&1 | /usr/lib/sendmail -t
exit 0

Now in the To: field, what goes here (forgive me for being stupid
sounding, but I have never done something like this...The From:
entry should be root@<mydomain.com> from what I see there...

Can anyone assist?

-Bill

Reply via email to