Perl Assignment #9:
Perl Modules
CS 447/647
Spring, 2012
Due:
4/3/12
Read
chapter 11 of Learning Perl. Do exercise 1.
Submit assign9.txt in Web Campus.
Include
the output from the hands-on below in assing9.txt.
Hands-On
Exercise
Setup
a caching name server on your system:
sudo bash
apt-get
install bind9
vim
/etc/bind/named.conf.options
#
change the forwarders section to the following:
forwarders {
134.197.6.1;
134.197.5.1;
};
# If
you installed off-campus you’ll need to set the
#
forwarders to match your current DNS servers
# If
your resolv.conf looks like this:
# cat
/etc/resolv.conf
nameserver
192.168.1.254
# then
set forwarders to:
forwarders {
192.168.1.254;
};
# replace
your nameserver lines with the following (localhost):
vim
/etc/resolv.conf
nameserver
127.0.0.1
# make
sure DHCP does not overwrite your changes
vim
/etc/dhcp/dhclient.conf
prepend
domain-name-servers 127.0.0.1;
/etc/init.d/bind9 restart
# make
sure DNS still works
dig
cse.unr.edu
Include
the output from dig (above) in the assignment you submit to Web Campus.