Running BIND

The next step was to modify the system startup files to launch BIND on setup, and to make sure BIND was working. Then, it was time to reboot, and check to make sure BIND was run properly at startup.

Script started on Wed Oct 27 21:14:29 1999
beorn% ssh gandalf
dfraser@gandalf's password: 
Last login: Wed Oct 27 18:00:59 1999 from 192.168.1.1
NetBSD 1.4.1 (GENERIC) #1: Tue Aug 10 00:03:09 MEST 1999

Welcome to NetBSD!

No mail.

"We don't care.  We don't have to.  We're the Phone Company."

gandalf% cd /etc
gandalf% cat rc.local
#       $NetBSD: rc.local,v 1.25 1998/11/20 17:26:32 hubertf Exp $
#       originally from: @(#)rc.local   8.3 (Berkeley) 4/28/94
#
# This file is (nearly) the last thing invoked by /etc/rc during a
# normal boot.
# It is intended to be edited locally to add site-specific boot-time
# actions, such as starting locally installed daemons.
#

echo -n 'starting local daemons:'

# add your local daemons here, following the startup models in /etc/rc

if [ -f /usr/local/sbin/sshd ]; then
        /usr/local/sbin/sshd
fi

echo '.'
gandalf% su
Password:
%jed rc.local
%cat rc.local
#       $NetBSD: rc.local,v 1.25 1998/11/20 17:26:32 hubertf Exp $
#       originally from: @(#)rc.local   8.3 (Berkeley) 4/28/94
#
# This file is (nearly) the last thing invoked by /etc/rc during a
# normal boot.
# It is intended to be edited locally to add site-specific boot-time
# actions, such as starting locally installed daemons.
#

echo -n 'starting local daemons:'

# add your local daemons here, following the startup models in /etc/rc

if [ -f /usr/local/sbin/sshd ]; then
        /usr/local/sbin/sshd
fi

if [ -f /usr/sbin/named ]; then
        /usr/sbin/named
fi

echo '.'
%/usr/sbin/named
%ps -auxww | grep named
root      1669  1.0  3.1   200  484 p0  S+    6:17PM    0:00.02 grep named 
root      1667  0.0  9.1  1336 1452 ??  Ss    6:17PM    0:00.01 /usr/sbin/named 
%tail /var/log/messages
Oct 27 18:17:23 gandalf named[1666]: starting.  named 8.2.2-REL Fri Oct 22 00:00:14 EDT 1999    dfraser@beorn.capybara.org:/usr/local/src/bind8.2.2/src/bin/named
Oct 27 18:17:23 gandalf named[1666]: hint zone "" (IN) loaded (serial 0)
Oct 27 18:17:23 gandalf named[1666]: master zone "localhost" (IN) loaded (serial 1993050801)
Oct 27 18:17:23 gandalf named[1666]: master zone "0.0.127.in-addr.arpa" (IN) loaded (serial 1993050801)
Oct 27 18:17:23 gandalf named[1666]: Zone "fraser.csd.uwo.ca" (file pri/fraser.csd.uwo.ca): No default TTL set using SOA minimum instead
Oct 27 18:17:23 gandalf named[1666]: master zone "fraser.csd.uwo.ca" (IN) loaded (serial 1993050801)
Oct 27 18:17:23 gandalf named[1666]: listening on [192.168.1.11].53 (ne1)
Oct 27 18:17:23 gandalf named[1666]: listening on [127.0.0.1].53 (lo0)
Oct 27 18:17:23 gandalf named[1666]: Forwarding source address is [0.0.0.0].65489
Oct 27 18:17:24 gandalf named[1667]: Ready to answer queries.
%nslookup - localhost
Default Server:  localhost
Address:  127.0.0.1

> fraser.csd.uwo.ca
Server:  localhost
Address:  127.0.0.1

Name:    fraser.csd.uwo.ca
Address:  24.112.183.217

> www.fraser.csd.uwo.ca
Server:  localhost
Address:  127.0.0.1

Name:    www.fraser.csd.uwo.ca
Address:  129.100.10.247

> www.netscape.com
Server:  localhost
Address:  127.0.0.1

Non-authoritative answer:
Name:    www-ld1.netscape.com
Address:  207.200.75.200
Aliases:  www.netscape.com

> www.uwo.ca
Server:  localhost
Address:  127.0.0.1

Non-authoritative answer:
Name:    cyclone.its.uwo.ca
Address:  129.100.2.71
Aliases:  www.uwo.ca

> www.microsoft.com
Server:  localhost
Address:  127.0.0.1

Name:    microsoft.com
Addresses:  207.46.130.150, 207.46.131.137, 207.46.131.28, 207.46.131.30
          207.46.130.14, 207.46.130.149
Aliases:  www.microsoft.com

> exit
%w
 6:20PM  up 20:17, 2 users, load averages: 0.17, 0.14, 0.14
USER    TTY FROM              LOGIN@  IDLE WHAT
dfraser  p0 192.168.1.1       6:14PM     0 w 
dfraser  p1 192.168.1.1       5:51PM     4 -tcsh -m 
%shutdown -r now
Shutdown NOW!
shutdown: [pid 1680]
%
*** FINAL System shutdown message from dfraser@gandalf.capybara.org ***
System going down IMMEDIATELY



System shutdown time has arrived

About to run shutdown hooks...

Done running shutdown hooks.
Connection to gandalf closed by remote host.
Connection to gandalf closed.
beorn% exit

Script done on Wed Oct 27 21:21:24 1999

Now, I'm going to log back in and make sure everything's running okay...

Script started on Wed Oct 27 21:25:53 1999
beorn% ssh gandalf
dfraser@gandalf's password: 
Last login: Wed Oct 27 18:25:31 1999 from 192.168.1.1
NetBSD 1.4.1 (GENERIC) #1: Tue Aug 10 00:03:09 MEST 1999

Welcome to NetBSD!

No mail.

You're not drunk if you can lie on the floor without holding on.
                -- Dean Martin

gandalf% ps -auxww | grep named
dfraser    259  1.0  3.0   200  480 p0  S+    6:26PM    0:00.02 grep named 
root       225  0.0  9.2  1344 1464 ??  Is    6:22PM    0:00.05 /usr/sbin/named 
gandalf% nslookup - localhost
Default Server:  localhost
Address:  127.0.0.1

> www.uwo.ca
Server:  localhost
Address:  127.0.0.1

Name:    cyclone.its.uwo.ca
Address:  129.100.2.71
Aliases:  www.uwo.ca

> exit
gandalf% exit
logout
Connection to gandalf closed.
beorn% exit
exit

Script done on Wed Oct 27 21:26:28 1999

Looks like everything's fine. It's time to conclude this assignment.