Open main menu

CDOT Wiki β

Changes

OPS335 - Assignment 1 (Part 2)

68 bytes added, 19:43, 7 September 2021
General Requirements
== Purpose ==
In this assignment, you will use the '''335assign virtual network''' virtual network and the '''sylvanaspangaea''' cloning-source that you created in assignment 1 (part 1) to create two name-servers. One of the cloned VMs (hostname: '''varianaustralinea''') will be a '''master''' name server, and the other VM (hostname: '''spruceantarctica''') 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.5% of the overall grade
'''Due Date''': During '''Week 9''' (in class)check with your professor
== 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 ('''varianaustralinea''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''varianaustralinea''' from the '''sylvanaspangaea''' 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 '''varianaustralinea''' virtual machine noting the following items below:<ol type="a"><li>This virtual machine will be the '''Master DNS server''' for '''continents.earth.ops'''.</li><li>Only '''antarctica''' 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 '''warcraftcontinents.gamesearth.ops.''' zone, including resource records for virtual machines that do not currently exist.</li><li> Include an You MUST use the following names for both the forward and reverse zone files in '''/var/named'''MX recorddirectory: ''' mydb-for e-mail email sent to the domain to be directed to continents.earth.ops''' and '''illidan.warcraftmydb-for-172.games28.ops105'''.</li><li>Any machine in the '''warcraftcontinents.gamesearth.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 '''continents.earth.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 ('''spruceantarctica''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''spruceantarctica''' from the '''sylvanaspangaea''' 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 '''spuceantarctica''' 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 daythree days. If the initial attempt fails, then it will attempt every hour twenty-four hours until it succeeds, or three weeks have passed.</li><li>This machine will provide '''forward''' and '''reverse''' lookups of ALL virtual machines in the '''warcraftcontinents.gamesearth.ops''' zone, the zone files for which will be obtained from '''varianaustralinea.warcraftcontinents.gamesearth.ops'''.</li><li>Only machines within the '''warcraftcontinents.gamesearth.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 ===
'''All''' the machines in the following table '''require DNS records'''. The rows not shaded represent future servers that will be created in Assignment #2.
{| class="wikitable" | style="margin-left:0px; border: 2px solid black;"
|- style="border: 2px solid black;font-weight:bold;text-align:center;"
| style="border: 2px solid black;" | Hostname / Domain
| style="border: 2px solid black;" |Address
| style="border: 2px solid black;" |Purpose
|-style="background-color:#66cccc; border: 2px solid black;"
| style="border: 2px solid black;" |'''azerothafrica.warcraftcontinents.gamesearth.ops''' (your existing host) || style=border: 2px solid black;" |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.1828.50105.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;" | '''sylvanaspangaea.warcraftcontinents.gamesearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | '''172.1828.50105.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;" | '''varianaustralinea.warcraftcontinents.gamesearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | ''' 172.1828.50105.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;" | '''guldanantarctica.warcraftcontinents.gamesearth.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.1828.50105.43'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''illidanasia.warcraftcontinents.gamesearth.ops''' | style="border: 2px solid black;" | ''' 172.1828.50105.75'''
| style="border: 2px solid black;" | '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="border: 2px solid black;" | '''kadgareurope.warcraftcontinents.gamesearth.ops''' | style="border: 2px solid black;" | '''172.1828.50105.86'''
| style="border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''jainasouthamerica.warcraftcontinents.gamesearth.ops''' | style="border: 2px solid black;" | '''172.1828.50105.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 '''varianaustralinea'''# Only the machines in the '''warcraftcontinents.gamesearth.ops''' network may query spruce.# Only spruce is allowed to get zone transfers from '''varianantarctica'''.
== Assignment Submission ==
===Assignment Evaluation Details===
*'''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<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 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 (Sections C &amp; D):'''<ul><li>Instructions will be provided through Moodle.</li></ul> 
::'''Elizabeth Kopiec's Classes (Section A):'''<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that both your '''varian''' *Download and '''spruce''' virtual machines are running.<li>Issue the command to download run a checking shell script for your assignment to check your '''host''' machine: <source>wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn1-p2.bash</source></li><li>Set execute permissions and run the commandwork: '''/root/bin/check-assn1-p2.bash'''<br>(You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. 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.<br><br></li></ol>
*'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. Login as '''Group submissions are not allowedroot'''.</li><li>You are NOT allowed to use local hostname resolution (i.e. no entries in on your '''/etc/hostshost''' file)machine.</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 <li>Change to the '''resubmit/root/bin'''directory.</li><li>Make certain that your '''Late submissions assignment VMs are a subject to a penalty of 10% per dayrunning'''.</li><li>SELinux must be set Issue the command to download a checking script for your assignment to your '''Enforcinghost'''machine:<br>wget https://matrix.senecacollege.ca/~peter.callaghan/files/OPS335/check-assn1-p2.bash</libr><br>Set execute permissions and run the shell script.<olbr>Upload the resulting file to blackboard.
==Evaluation Rubric==
|-
|
::'''varianaustralinea''' and '''spruceantarctica''' VMs created
| style="text-align:right" | /1
|-
|
::'''varianaustralinea''' and '''spruceantarctica''' VMs can perform '''DNS queries for of vm1, vm2, vm3'''
| style="text-align:right" | /1
|-
|
::'''varianaustralinea''' and '''spruceantarctica''' VMs can perform '''forward DNS lookups''' for ALL machines within network (listed in the table above)
| style="text-align:right" | /3
|-
|
::'''varianaustralinea''' and '''spruceantarctica''' 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 (varianaustralinea) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (varianaustralinea) - Named Configuration Options / Zone Declarations'''
|-
|
::Zone transfer (i.e. to slave DNS server) limited to '''spruceantarctica''' only
| style="text-align:right" | /1
|-
|
::Allows forward and reverse lookups to '''warcraftcontinents.gamesearth.ops'''
| style="text-align:right" | /1
|-
|
::'''Recursion''' limited to '''warcraftcontinents.gamesearth.ops''' only
| style="text-align:right" | /1
|-
|
::varian australinea server is the '''master''' name-server for warcraftcontinents.gamesearth.ops
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (varianaustralinea) - Zone Record'''
|-
|
::'''SOA''' - two three common options (determined by instructor at time of marking)| style="text-align:right" | /23
|-
|
| style="text-align:right" | /2
|-
| ::'''MX''' record| style="text-align:right" | /1|-| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (spruceantarctica) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (spuceantarctica) - Named Configuration Options'''
|-
|
::Queries are limited to '''warcraftcontinents.gamesearth.ops'''
| style="text-align:right" | /1
|-
|-
|
::Allows forward and reverse lookup for '''warcraftcontinents.gamesearth.ops'''
| style="text-align:right" | /1
|-
|
::spruce antarctica server is '''slave''' name-server for '''warcraftcontinents.gamesearth.ops'''
| style="text-align:right" | /1
|-
|-
|
::'''varianaustralinea''' allows queries from any machine(i.e. will work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|
::'''spruceantarctica''' limits queries to '''warcraftcontinents.gamesearth.ops''' (i.e. won't work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
| colspan=2 style="background-color:#eeeeee;"| '''Less Deductions (1 mark per issue for EACH VM):'''
|-
|
:*Not using zone filenames: '''mydb-for-continents.earth.ops''' and '''mydb-for-172.28.105'''
:*'''VM hostname''' NOT set
:*firewalld '''enabled''' / '''running'''
:*'''Named''' NOT active
:*Local hostname resolution appears in '''/etc/hosts''' (1 mark per entry, per vm)
:*Neglecting major safeguards (e.g. no firewall present, firewall allowing all traffic, no active SELinux) ('''4 marks per issue, per VM'''):*Failing to backup VMs ('''1 mark deduction for each VM not backed up''')
|
|-