Changes

Jump to: navigation, search

OPS335 - Assignment 1 (Part 2)

1,223 bytes removed, 13:42, 14 February 2019
Network Configuration
== Purpose ==
In this assignment, you will use the '''335assign''' virtual network and the '''minnowblofeld''' cloning-source that you created in assignment 1 (part 1) to create two name-servers. One of the cloned VMs (hostname: '''pikewint''') will be a '''master''' name server, and the other VM (hostname: '''pickerelkidd''') 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 ('''pikewint''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''pikewint''' from the '''minnowblofeld''' 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 '''pikewint''' virtual machine noting the following items below:<ol type="a"><li>This virtual machine will be the '''Master DNS server''' for '''speciesbond.lakevillains.ops'''.</li><li>Only '''pickerelkidd''' 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 '''speciesbond.lakevillains.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.19.1'''<li> Include an '''MX record''' for email sent to the domain to be directed to '''basscarver.speciesbond.lakevillains.ops'''.</li><li>Any machine in the '''speciesbond.lakevillains.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 '''speciesbond.lakevillains.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 ('''pickerelkidd''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''pickerelkidd''' from the '''minnowblofeld''' 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 '''pickerelkidd''' 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 virtual machines in the '''speciesbond.lakevillains.ops''' zone, the zone files for which will be obtained from '''pikewint.speciesbond.lakevillains.ops'''.</li><li>Only machines within the '''speciesbond.lakevillains.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;" |'''freshwaterno.speciesbond.lakevillains.ops''' (your existing host)| style=border: 2px solid black;" |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.1719.401.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;" | '''minnowblofeld.speciesbond.lakevillains.ops''' | style="background-color:#66cccc; border: 2px solid black;" | '''172.1719.401.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;" | '''pikewint.speciesbond.lakevillains.ops''' | style="background-color:#66cccc; border: 2px solid black;" | ''' 172.1719.401.32'''
| 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;" | '''pickerelkidd.speciesbond.lakevillains.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.1719.401.43'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''basscarver.speciesbond.lakevillains.ops''' | style="border: 2px solid black;" | ''' 172.1719.401.75'''
| style="border: 2px solid black;" | '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="border: 2px solid black;" | '''muskiedrax.speciesbond.lakevillains.ops''' | style="border: 2px solid black;" | '''172.1719.401.86'''
| style="border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''perchzorin.speciesbond.lakevillains.ops''' | style="border: 2px solid black;" | '''172.1719.401.98'''
| 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 '''pikewint'''# Only the machines in the '''speciesbond.lakevillains.ops''' network may query pickerel'''kidd'''.
== Assignment Submission ==
===Assignment Evaluation Details===
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>You need to run their full backup shell script to backup all of your VMs (like you did in Assignment 1 - Part 1.</li><li>Students need to demonstrate their assignment functionality to their professor during a lab period<br>(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>  ::'''Colin Yips Classes''' (Sections '''A''' , '''B''' &amp; '''C'''):<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, primary DNS and secondary 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> <span style="font-family:courier;font-size:1.5em;color:#4d4dff">wget https://matrix.senecacollege.ca/~murraypeter.saulcallaghan/ops335files/OPS335/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.  *'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><ol> *'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>You are NOT allowed to use local hostname resolution (i.e. no entries in your '''/etc/hosts''' file).<li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><li>SELinux must be set to '''Enforcing'''.</li><ol>
==Evaluation Rubric==
|-
|
::'''pikewint''' and '''pickerelkidd''' VMs created
| style="text-align:right" | /1
|-
|
::'''pikewint''' and '''pickerelkidd''' VMs can perform '''DNS queries of vm1, vm2, vm3'''
| style="text-align:right" | /1
|-
|
::'''pikewint''' and '''pickerelkidd''' VMs can perform '''forward DNS lookups''' for ALL machines within network (listed in the table above)
| style="text-align:right" | /3
|-
|
::'''pikewint''' and '''pickerelkidd''' 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 (pikewint) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (pikewint) - Named Configuration Options / Zone Declarations'''
|-
|
::Zone transfer (i.e. to slave DNS server) limited to '''pickerelkidd''' only
| style="text-align:right" | /1
|-
|
::Allows forward and reverse lookups to '''speciesbond.lakevillains.ops'''
| style="text-align:right" | /1
|-
|
::'''Recursion''' limited to '''speciesbond.lakevillains.ops''' only
| style="text-align:right" | /1
|-
|
::pike wint server is the '''master''' name-server for speciesbond.lakevillains.ops
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (pikewint) - Zone Record'''
|-
|
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (pickerelkidd) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (pickerelkidd) - Named Configuration Options'''
|-
|
::Queries are limited to '''speciesbond.lakevillains.ops'''
| style="text-align:right" | /1
|-
|-
|
::Allows forward and reverse lookup for '''speciesbond.lakevillains.ops'''
| style="text-align:right" | /1
|-
|
::pickerel kidd server is '''slave''' name-server for '''speciesbond.lakevillains.ops'''
| style="text-align:right" | /1
|-
|-
|
::'''pikewint''' allows queries from any machine (i.e. will work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|
::'''pickerelkidd''' limits queries to '''speciesbond.lakevillains.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.19.1'''
:*'''VM hostname''' NOT set
:*firewalld '''enabled''' / '''running'''
572
edits

Navigation menu