CECS 303 - Lab 1
CECS 303 - Lab 1
Objective: Create a networked lab environment for use throughout the semester
Links:
• VirtualBox: https://www.virtualbox.org/wiki/Downloads
• Ubuntu: https://ubuntu.com/download/server or
https://ubuntu.com/download/desktop
• Basic Linux Commands: https://maker.pro/linux/tutorial/basic-linux-
commands-for-beginners
Instructions (for server installation):
Prepare minimum of two Ubuntu instances using VirtualBox that can
communicate over a local network
1. Download and install VirtualBox instance appropriate for your operating
system (v7.0)
2. Download Ubuntu ISO (version 22.04 LTS)
a. If using M-series Apple Chip then be sure to download ARM version
i. https://ubuntu.com/download/server/arm
3. Open VirtualBox application
a. Select “Machine -> New” from top level menu
i. Name: Provide unique name
ii. Folder: Leave default or choose a different location
iii. ISO Image: Select downloaded ISO file
iv. Type: Linux
v. Version: Ubuntu (64-bit)
b. Select ‘Next’
i.
6. After reboot, login with username and password
7. Run command “sudo apt install net-tools”
a. Once this is complete, you should be able to reach the internet
b. Test by using ping
i. e.g. “ping –c 4 google.com” and ensure you receive a response
ii.
8. Run command ‘ifconfig’ and take note of your host’s IP address
a.
b. e.g. This host has an IP address of 192.168.4.46
DNS Queries:
The ‘dig’ command in Linux is useful to gather DNS information. Please pick a
domain (e.g. csulb.edu) and run the following commands to familiarize yourself
with the type of information publicly available about a domain:
1. Find the domain’s primary IP address(es): dig <domain-name.com> (e.g.
‘dig csulb.edu’)
a. Check to see if the www subdomain returns a different IP address
than the domain itself (e.g. ‘dig www.csulb.edu)
b. Try to find other subdomains associated with the domain (e.g. mail,
owa, smtp, ftp, etc.)
2. Find the domain’s mail server by using the MX command: dig <domain-
name.com> MX
a. The MX record in DNS tells other mail servers where to send email
for a particular domain
3. Lookup the domain’s assigned name servers: dig <domain-name.com> NS
a. The list that comes up are all the servers responsible for keeping up-
to-date DNS records for the domain
4. Lookup some of the reverse DNS records for one or more of the IP
addresses you are able to identify: dig –x <IP address> (e.g. ‘dig –x
134.139.19.17’)
a. In the example provided above 134.139.19.17 is the IP address for
csulb.edu
b. Reverse DNS entries can provide further information regarding who
owns or uses an IP address