Changes

Jump to: navigation, search

OPS335 - Assignment 1 (Part 2)

862 bytes removed, 13:42, 14 February 2019
Network Configuration
== Purpose ==
In this assignment, you will use the '''335assign''' virtual network and the '''blofeld''' cloning-source that you created in assignment 1 (part 1) to create two name-servers. One of the cloned VMs (hostname: '''torontowint''') will be a '''master''' name server, and the other VM (hostname: '''ottawakidd''') will be a '''slave''' name server. You will install and setup the master and slave servers in order to provide various domain name resolutions for existing servers, and for servers that will be created and used in assignment #2.
== General Requirements ==
'''Weight''': 7% of the overall grade
'''Due Date(Winter 2019)''': During '''Week 97''' (in class)
== Detailed Requirements ==
{{Admon/important|It is YOUR responsibility to Backup all of your VMs for this Assignment!|You are required to frequently backup your VMs prior to exiting a work session during this assignment. Your instructor will NOT accept the fact that your hard disk crashed and lost all of your work. If you properly backed up your VM images and xml configuration files to a USB, then you can purchase a new hard-disk or wipe and recreate your hard disk and restore your VMs. }}<br />
=== Set-up Master Name Server ('''torontowint''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''torontowint''' from the '''blofeld''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Setup a DNS server on your '''torontowint''' virtual machine noting the following items below:<ol type="a"><li>This virtual machine will be the '''Master DNS server''' for '''bond.villains.ops'''.</li><li>Only '''ottawakidd''' will be allowed to obtain zone transfers of this zone.</li><li>This machine will provide '''forward''' and '''reverse''' lookups of ALL virtual machines in the '''bond.villains.ops.''' zone, including resource records for virtual machines that do not currently exist.</li><li>You MUST use the following names for both the forward and reverse zone files in '''/var/named''' directory: '''mydb-for-bond.villains.ops''' and '''mydb-for-172.1719.151'''<li> Include an '''MX record''' for email sent to the domain to be directed to '''kingstoncarver.bond.villains.ops'''.</li><li>Any machine in the '''bond.villains.ops''' network may use this machine to perform queries of machines outside the network, however it will route all such queries through the DNS server you created in lab #3.</li><li>For machines outside the '''bond.villains.ops''' domain, it will only answer queries about machines inside the network. They may not use it to query other machines.</li></ol>
=== Set-up Slave Name Server ('''ottawakidd''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''ottawakidd''' from the '''blofeld''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Setup a DNS server on your '''ottawakidd''' virtual machine noting the following items below:<ol type="a"><li>This virtual machine will be the '''Slave DNS server''' (in case the Master Name Server goes down).</li><li>This virtual machine will obtain its zone files by copying them from the Master Name Server.</li><li>This Slave DNS server will check for updated records from the Master DNS server every two five days. If the initial attempt fails, then it will attempt every six twelve hours until it succeeds, or one week has two weeks have passed.</li><li>This machine will provide '''forward''' and '''reverse''' lookups of ALL machines in the '''bond.villains.ops''' zone, the zone files for which will be obtained from '''torontowint.bond.villains.ops'''.</li><li>Only machines within the '''bond.villains.ops''' domain will be allowed to query this machine.</li><li>This machine will not provide recursive lookup capabilities for any machines.<br><br></li></ol>
=== Network Configuration ===
As you will now have functioning primary and secondary DNS servers, modify your network configuration file on these machines and on the '''cloning source ''' to specify the correct IPADDR.
=== Table of Virtual Machines / DNS Records ===
| style="border: 2px solid black;" |Purpose
|-style="background-color:#66cccc; border: 2px solid black;"
| style="border: 2px solid black;" |'''yorkno.bond.villains.ops''' (your existing host)| style=border: 2px solid black;" |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.1719.151.1'''
| style="border: 2px solid black;" | Your '''host''' machine
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''blofeld.bond.villains.ops'''
| style="background-color:#66cccc; border: 2px solid black;" | '''172.1719.151.100'''
| style="background-color:#66cccc; border: 2px solid black;" |'''Cloning-source''' used to create other servers for other assignments.
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''torontowint.bond.villains.ops''' | style="background-color:#66cccc; border: 2px solid black;" | ''' 172.1719.151.2'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Master''' Name Server
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''ottawakidd.bond.villains.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.1719.151.3'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''kingstoncarver.bond.villains.ops''' | style="border: 2px solid black;" | ''' 172.1719.151.5'''
| style="border: 2px solid black;" | '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="border: 2px solid black;" | '''coburgdrax.bond.villains.ops''' | style="border: 2px solid black;" | '''172.1719.151.6'''
| style="border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''miltonzorin.bond.villains.ops''' | style="border: 2px solid black;" | '''172.1719.151.8'''
| style=border: 2px solid black;" | '''Samba''' Server
|}
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
# Any machine may query '''torontowint'''# Only the machines in the '''bond.villains.ops''' network may query ottawa'''kidd'''.
== Assignment Submission ==
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>Students need to demonstrate their assignment functionality to their professor during a lab period (like you would for any lab for "sign-off").</li><li>Students are required to prepare everything ahead of time so that you can quickly demonstrate to your instructor that all required parts of your assignment are working.</li><li>'''Do not proceed to the next step''' until you have demonstrated your assignment to your instructor to check for errors that may cause problems when running the checking script.<br><br></li></ol>
*Download and run a shell script to check your work (Depending on your OPS335 Instructor):
 ::'''Peter Callaghan's Classes''' (Section '''D'''):<ul><li>Refer to instruction on blackboard for instructions on how to submit this assignment.</li></ul>  ::'''Murray Saul, Ryan Lockhart-Thompson and Colin Yip''':<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that your '''cloning-source ('''blofeld'''), DNS servers ('''toronto''' and '''ottawa''') assignment VMs are running'''.</li><li>Make certain that the mailx command has been installed. If not, issue the following command to install e-mail on your '''host''' machine:<source>yum install mailx </source><li>Issue the command to download a checking script for your assignment to your '''host''' machine:<br><br>'''Murray Saul's classes (section A):''' &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff">wget https://matrix.senecacollege.ca/~murraypeter.saulcallaghan/ops335/check-assn1-p2-murray-saul.bash </span><br><br>'''Ryan Lockhart-Thompons's classes (Section B):''':<br><span style="font-family:courier;font-size:1.5em;color:#4d4dff"> wget https:files//matrix.senecacollege.ca/~murray.saul/ops335OPS335/check-assn1-p2-ryan.bash</span><br><br>'''Colin Yip's classes (Section C, E, and F):''': &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff"> wget https://scs.senecac.on.ca/~colin.yip/2187/check-assn1-p2-colin.bash</span><br><br>Set execute permissions and run the shell script.<br>(Your shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email, and a confirmation message will be emailed to you.<br><br>If you do '''NOT''' receive an e-mail message in your Seneca email account, then there is a problem, and you '''MUST''' rerun or contact your OPS335 instructor immediately.
==Evaluation Rubric==
|-
|
::'''torontowint''' and '''ottawakidd''' VMs created
| style="text-align:right" | /1
|-
|
::'''torontowint''' and '''ottawakidd''' VMs can perform '''DNS queries of vm1, vm2, vm3'''
| style="text-align:right" | /1
|-
|
::'''torontowint''' and '''ottawakidd''' VMs can perform '''forward DNS lookups''' for ALL machines within network (listed in the table above)
| style="text-align:right" | /3
|-
|
::'''torontowint''' and '''ottawakidd''' VMs can perform '''reverse DNS lookups''' for ALL machines within network (listed in the table above)
| style="text-align:right" | /3
|-
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (torontowint) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (torontowint) - Named Configuration Options / Zone Declarations'''
|-
|
::Zone transfer (i.e. to slave DNS server) limited to '''ottawakidd''' only
| style="text-align:right" | /1
|-
|-
|
::toronto wint server is the '''master''' name-server for bond.villains.ops
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (torontowint) - Zone Record'''
|-
|
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (ottawakidd) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (ottawakidd) - Named Configuration Options'''
|-
|
|-
|
::ottawa kidd server is '''slave''' name-server for '''bond.villains.ops'''
| style="text-align:right" | /1
|-
|-
|
::'''torontowint''' allows queries from any machine (i.e. will work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|
::'''ottawakidd''' limits queries to '''bond.villains.ops''' (i.e. won't work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|-
|
:*Not using zone filenames: '''mydb-for-bond.villains.ops''' and '''mydb-for-172.1719.151'''
:*'''VM hostname''' NOT set
:*firewalld '''enabled''' / '''running'''
572
edits

Navigation menu