logo

LINUX File System

Create two Virtual Machines running Ubuntu Server and Fedora Server, assign static IP addresses, and set up services for user base.

23 Pages1749 Words97 Views
   

Added on  2023-03-21

About This Document

This document provides a step-by-step guide on configuring virtual machines, DNS & SSH server, web and database servers, remote file access, and simple web services in LINUX. It includes instructions for installing and configuring various components such as bind, Apache server, MySQL, PHP, and FTP. The document also provides references for further information.

LINUX File System

Create two Virtual Machines running Ubuntu Server and Fedora Server, assign static IP addresses, and set up services for user base.

   Added on 2023-03-21

ShareRelated Documents
Running head: LINUX File System
LINUX File System
Name of the Student:
Name of the University:
Author Note:
LINUX File System_1
1LINUX File System
Table of Contents
Part 1: Virtual Machine One (Ubuntu) – DNS & SSH Server...................................................2
Part 2: Virtual Machine Two (Fedora) - Web and Database servers........................................5
Part 3: : Remote File Access......................................................................................................6
Part 4: Simple Web Services......................................................................................................8
References................................................................................................................................12
LINUX File System_2
2LINUX File System
Part 1: Virtual Machine One (Ubuntu) – DNS & SSH Server
In this part, the first virtual machine is configured to use bind to configure it as a private DNS
virtual server. Here, first the Ubuntu server 18.04 is installed in the VMware virtual machine.
The ip address of the server is chosen by modifying the existing ip address of the VM by
seeing it via ifconfig command. The following steps are performed:
1. Bind is installed via: sudo apt-get install bind9 bind9utils bind9-doc
2. The next step is to configure the bind to set it in ipv4 mode by this command:
sudo nano /etc/default/bind9
And then add "-4" to the end of the OPTIONS parameter. The result is as follows:
OPTIONS="-u bind -4"
3. The next step is to restart bind to implement changes via
sudo systemctl restart bind9
LINUX File System_3
3LINUX File System
4. Now it’s time to configure the main DNS server that is VM1. Open the
named.conf.options file using: sudo nano /etc/bind/named.conf.options
5. Create a new ACL block and add the details about the primary IP address and the host
IP address.
6. After creating the ACL block, edit the options block below and add:
options {
directory "/var/cache/bind";
recursion yes; # enables resursive queries
allow-recursion { trusted; }; # allows recursive queries from "trusted"
clients
listen-on { ip address; }; # ns1 private IP address - listen on private
network only
allow-transfer { none; }; # disable zone transfers by default
forwarders {
8.8.8.8;
8.8.4.4;
};
Save the file and exit using CTRL + O and CTRL + X.
LINUX File System_4
4LINUX File System
7. Next its time to configure the local file. Open named.conf.local file for edit using:
sudo nano /etc/bind/named.conf.local
Add the following lines in the file:
zone "shekhda.net.au" {
type master;
file "/etc/bind/zones/db.nyc3.example.com"; # zone file path
allow-transfer { ip address; }; # ns2 private IP address - secondary
};
Add these lines too:
zone "128.10.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.10.128"; # 10.128.0.0/16 subnet //assumed
allow-transfer { ip address; }; # ns2 private IP address - secondary
};
LINUX File System_5
5LINUX File System
Save the file and exit.
8. Create the forward zone as shown below:
Create this directory by: sudo mkdir /etc/bind/zones
Copy the db file using this command:
sudo cp /etc/bind/db.local /etc/bind/zones/db. shekhda.net.au
Edit the file by opening it via:
sudo nano /etc/bind/zones/ db. shekhda.net.au
Make the necessary changes so that it looks like this:
$TTL 604800
@ IN SOA ns1. shekhda.net.au. admin. shekhda.net.au. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.nyc3.example.com.
LINUX File System_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
In this assignment, the following configurations applies, Ubuntu
|14
|482
|50

Linux: DNS, SSH, LAMP, FTP, and SSL Configuration
|25
|2860
|299

Assignment On Two Virtual Machine
|27
|1850
|17

The Domain Name System Server
|17
|1046
|41

Master and slave DNS-servers - Assignment
|11
|525
|123

Installation and Configuration of Linux Virtual Machines for Managing Services and Security
|20
|1511
|489