Open main menu

CDOT Wiki β

Changes

OPS335 - Assignment 1 (Part 2)

450 bytes removed, 18:43, 7 September 2021
General Requirements
== Purpose ==
In this assignment, you will use the '''335assign''' virtual network and the '''conceptpangaea''' cloning-source that you created in assignment 1 (part 1) to create two name-servers. One of the cloned VMs (hostname: '''wendysaustralinea''') will be a '''master''' name server, and the other VM (hostname: '''harveysantarctica''') 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 (Summer 2019)''': During '''Week 7''' (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 ('''wendysaustralinea''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''wendysaustralinea''' from the '''conceptpangaea''' 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 '''wendysaustralinea''' virtual machine noting the following items below:<ol type="a"><li>This virtual machine will be the '''Master DNS server''' for '''bondcontinents.villainsearth.ops'''.</li><li>Only '''harveysantarctica''' 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 '''bondcontinents.villainsearth.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-bondcontinents.villainsearth.ops''' and '''mydb-for-172.1928.1105'''<li><s> Include an '''MX record''' for email sent to the domain to be directed to '''subway.bond.villains.ops'''.</s></li><li>Any machine in the '''bondcontinents.villainsearth.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 '''bondcontinents.villainsearth.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 ('''harveysantarctica''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''harveysantarctica''' from the '''conceptpangaea''' 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 '''harveysantarctica''' 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 five three days. If the initial attempt fails, then it will attempt every twelve twenty-four hours until it succeeds, or two three weeks have passed.</li><li>This machine will provide '''forward''' and '''reverse''' lookups of ALL machines in the '''bondcontinents.villainsearth.ops''' zone, the zone files for which will be obtained from '''wendysaustralinea.bondcontinents.villainsearth.ops'''.</li><li>Only machines within the '''bondcontinents.villainsearth.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 ===
=== 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;" |Purpose
|-style="background-color:#66cccc; border: 2px solid black;"
| style="border: 2px solid black;" |''hungryafrica.restaurantcontinents.fastfoodearth.ops''' (your existing host)| style=border: 2px solid black;" |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.2128.5105.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;" | '''conceptpangaea.restaurantcontinents.fastfoodearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | '''172.2128.5105.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;" | '''wendysaustralinea.restaurantcontinents.fastfoodearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | ''' 172.2128.5105.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;" | '''harveysantarctica.restaurantcontinents.fastfoodearth.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.2128.5105.3'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''subwayasia.restaurantcontinents.fastfoodearth.ops''' | style="border: 2px solid black;" | ''' 172.2128.5105.5'''
| style="border: 2px solid black;" | '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="border: 2px solid black;" | '''arbyseurope.restaurantcontinents.fastfoodearth.ops''' | style="border: 2px solid black;" | '''172.2128.5105.6'''
| style="border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="border: 2px solid black;" | '''mcdonaldssouthamerica.restaurantcontinents.fastfoodearth.ops''' | style="border: 2px solid black;" | '''172.2128.5105.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 '''wendysaustralinea'''# Only the machines in the '''bondcontinents.villainsearth.ops''' network may query '''harveysantarctica'''.
== Assignment Submission ==
*Download and run a shell script to check your work:
<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that your '''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:<span style="fontbr>wget https://matrix.senecacollege.ca/~peter.callaghan/files/OPS335/check-family:courier;fontassn1-size:1p2.5em;color:#4d4dff">TBA</span>bash<br><br>Set execute permissions and run the shell script.<br>(Your shell script contents will be mailed to your OPS335 instructor's Seneca email, and a confirmation message will be emailed Upload the resulting file 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 immediatelyblackboard.
==Evaluation Rubric==
|-
|
::'''wendysaustralinea''' and '''harveysantarctica''' VMs created
| style="text-align:right" | /1
|-
|
::'''wendysaustralinea''' and '''harveysantarctica''' VMs can perform '''DNS queries of vm1, vm2, vm3'''
| style="text-align:right" | /1
|-
|
::'''wendysaustralinea''' and '''harveysantarctica''' VMs can perform '''forward DNS lookups''' for ALL machines within network (listed in the table above)
| style="text-align:right" | /3
|-
|
::'''wendysaustralinea''' and '''harveysantarctica''' 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 (wendysaustralinea) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (wendysaustralinea) - Named Configuration Options / Zone Declarations'''
|-
|
::Zone transfer (i.e. to slave DNS server) limited to '''harveysantarctica''' only
| style="text-align:right" | /1
|-
|
::Allows forward and reverse lookups to '''bondcontinents.villainsearth.ops'''
| style="text-align:right" | /1
|-
|
::'''Recursion''' limited to '''bondcontinents.villainsearth.ops''' only
| style="text-align:right" | /1
|-
|
::wendys australinea server is the '''master''' name-server for bondcontinents.villainsearth.ops
| style="text-align:right" | /1
|-
| colspan=2 style="background-color:#eeeeee;"| '''Master Name Server (wendysaustralinea) - Zone Record'''
|-
|
| style="text-align:right" | /2
|-
| ::<s>'''MX''' record</s>| style="text-align:right" |<s> /1</s>|-| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (harveysantarctica) - Network Configuration'''
|-
|
| style="text-align:right" | /5
|-
| colspan=2 style="background-color:#eeeeee;"| '''Slave Name Server (harveysantarctica) - Named Configuration Options'''
|-
|
::Queries are limited to '''bondcontinents.villainsearth.ops'''
| style="text-align:right" | /1
|-
|-
|
::Allows forward and reverse lookup for '''bondcontinents.villainsearth.ops'''
| style="text-align:right" | /1
|-
|
::harveys antarctica server is '''slave''' name-server for '''bondcontinents.villainsearth.ops'''
| style="text-align:right" | /1
|-
|-
|
::'''wendysaustralinea''' allows queries from any machine (i.e. will work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|
::'''harveysantarctica''' limits queries to '''bondcontinents.villainsearth.ops''' (i.e. won't work with '''vm1''', '''vm2''', '''vm3''')
| style="text-align:right" | /2
|-
|-
|
:*Not using zone filenames: '''mydb-for-bondcontinents.villainsearth.ops''' and '''mydb-for-172.1928.1105'''
:*'''VM hostname''' NOT set
:*firewalld '''enabled''' / '''running'''