GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/MichaelMalz/CST2608/_Archive/ |
Upload File : |
<? // Lab03.php $TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n"; ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path. $thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc'); $assignmentNumber = 3; $assignmentType = "Lab"; $assignmentTitle = "DNS server setup"; $evaluationType = "Lab"; $evaluationTitle = $assignmentTitle; if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { $assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; } if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle; $title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; $js='openCenteredWindow'; $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc'); $f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = str_replace(" ","",username($userId)); } else { $userFullName = str_replace(" ","",$_SESSION['userFullName']); $userId = $_SESSION['userId']; } $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc'); ?> <p> <fieldset><legend>Description</legend> Setup a DNS server. </fieldset> <fieldset><legend>Lab Instruction</legend> <ol start="1"> <li>Setup DNS server. <ol type="a"> <li>Install the DNS server.<br /> <kbd>sudo apt-get install bind9</kbd> </li> <li>Configure the DNS local settings. <br /><kbd>sudo gedit /etc/bind/named.conf.local</kbd> <br />An example named.conf.local: <pre class="code">// // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; zone "ubuntu.loc" { type master; file "/etc/bind/zones/ubuntu.loc.db"; }; zone "102.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.102.168.192.in-addr.arpa"; };</pre> </li> <li>Configure the DNS options settings. <br /><kbd>sudo gedit /etc/bind/named.conf.options</kbd> <br />An example named.conf.options: <pre class="code">options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.102.1; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; };</pre> </li> <li>Create the zone file. <br /><kbd>sudo gedit /etc/bind/zones/ubuntu.loc.db</kbd> <br />Add an <b>A</b> record for google as in this example zone file: <pre class="code">ubuntu.loc. IN SOA main.ubuntu.loc. jim.ubuntu.loc. ( 2006081401 28800 3600 604800 38400 ) ubuntu.loc. IN NS main.ubuntu.loc. ubuntu.loc. IN MX 10 main.ubuntu.loc. cst IN A 134.29.175.74 home IN A 192.168.102.2 google IN A 209.85.171.99 main IN A 192.168.102.2</pre> </li> <li>Create the reverse DNS zone file. <br /><kbd>sudo gedit /etc/bind/zones/rev.102.168.192.in-addr.arpa</kbd> <br />An example reverse DNS zone file: <pre class="code">@ IN SOA main.ubuntu.loc. jim.ubuntu.loc. ( 2006081401; 28800; 604800; 604800; 86400; ) IN NS main.ubuntu.loc. 2 IN PTR ubuntu.loc</pre> </li> <li>Reconfigure the DHCP server. <br /><kbd>sudo gedit /etc/dhcp3/dhcpd.conf</kbd> <br />Change the DHCP configuration to use your Ubuntu server for DNS. <pre class="code">subnet 192.168.102.0 netmask 255.255.255.0 { range 192.168.102.100 192.168.102.200; option domain-name-servers 192.168.102.2; option domain-name "ubuntu.loc"; option routers 192.168.102.1; option broadcast-address 192.168.102.255; default-lease-time 600; max-lease-time 7200; }</pre> </li> </ol> </li> <li>Restart the DHCP and DNS servers. <br /><kbd>sudo /etc/init.d/dhcp3-server restart</kbd> <br /><kbd>sudo /etc/init.d/bind9 restart</kbd> </li> <li>Dig your domain by using the <kbd>dig</kbd> command followed by your domain name. <br />Take a screenshot and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png</b> <br />An example should look like: <br /><img src="Labs/Lab03/Ubuntu_dig.png" alt="Ubuntu dig" /> </li> <li>Setup another VMware machine that uses the same network your Ubuntu server is on and to use your Ubuntu server for DNS. This is automatic if the VMware machine uses your Ubuntu server for DHCP. <ol type="a"> <li>Perform dig or nslookup of the Ubuntu server and the google setup. <br />Take a screenshot and as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png</b>. <br />Here is a screenshot from a Windows XP VMware machine: <br /><img src="Labs/Lab03/XP_nslookup.png" alt="XP nslookup" /> <br />Here is a screenshot from an Ubuntu VMware machine: <br /><img src="Labs/Lab03/Ubuntu_nslookup.png" alt="Ubuntu dig" /> </li> <li>Open a browser and enter your cst name. <br />Take a screenshot and as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>c-<?=$userFullName?>.png</b>. <br />Here is a screenshot from a Windows XP VMware machine: <br /><img src="Labs/Lab03/XP_cst.png" alt="XP cst.ubuntu.loc" /> <br />Here is a screenshot from an Ubuntu VMware machine: <br /><img src="Labs/Lab03/Ubuntu_cst.png" alt="Ubuntu cst.ubuntu.loc" /> </li> </ol> </li> <li> <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> <?=$evaluationName?> Submission">Send an email</a> to jim.martinson@ridgewater.edu with a subject of <b style="white-space:nowrap"><?=$courseNumber?> <?=$evaluationName?> Submission</b> and attach the following files: <ol type="a"> <li><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png.</li> <li><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png.</li> <li><?=$courseNumber?>-<?=$evaluationName?>c-<?=$userFullName?>.png.</li> <li>/etc/bind/named.conf.local.</li> <li>/etc/bind/named.conf.options.</li> <li>/etc/bind/zones/rev.102.168.192.in-addr.arpa. (replace this file name with the name of your reverse DNS zone file)</li> <li>/etc/bind/zones/ubuntu.loc.db. (replace this file name with the name of your DNS zone file)</li> <li>/etc/resolv.conf.</li> </ol> </li> </ol> </fieldset> <fieldset class="pio"><legend>Grading Criteria</legend> Demonstrated assignment effectively: 10 points. <br /> There are some things I expect. If they are incorrect you will lose the following: <br /> Incorrect attachment file name: -1 pt. <br /> Work submitted incorrectly: -1pt. <br /> Incorrect subject in email: -1pt. <br /> Second and subsequent submission of work for grading: -1pt. <br /> Work submitted late: -1pt. </fieldset> <fieldset class="pio"><legend>Objectives</legend> <ol class="obj pio" start="7"> <!-- Week 5 7 Chapter 15 --> <li>Describe the Domain Name System (DNS).</li> <li>Install and configure the Berkely Internet Name Domain (BIND) system.</li> <li>Use BIND and DNS.</li> </ol> </fieldset> <fieldset><legend>Notes</legend> Here is a <a href="Labs/<?=$evaluationName?>/<?=$evaluationName?>.zip"><?=$evaluationName?>.zip</a> file with examples of what must be turned in as well as gedit and sudo scripts to help with the assignment.<br /> </fieldset> <? $thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc'); ?>