Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Name :- Yash Rajesh Karalkar

Subject :- Linux Server Administration


Roll no :- 12
Practicals :-
1. DNS Configuration
2. APACHE SERVER Configuration
3. DHCP Configuration
4. NFS Configuration
DNS CONFIGURATION
SERVER SIDE MACHINE
Check if your machine has ip address and go to the following file.

Add the DNS line. Make ONBOOT value as ‘Yes’.


Go to /etc/hosts file
Go to /etc/sysconfig/network

Go to /etc/resolv.conf
Start the network service ‘network’ as follows

Install bind package using GUI from packages folder and query using rpm
command to check if it is installed or not.
To find Bind Package this is path
RHEL_6.1 i386 Disc 1 -> Packages -> bind-libs-9.7.3-2.el6.i686.rpm

Make changes in the /etc/named.conf file as follows:


Go to /etc/named.rfc1912.zones and make changes as follows.
Go to /var/named directory.Make a new file as ‘forward.zone’ and
‘reverse.zone’ and enter the content as follows. You can copy the basic
contents from named.localhost file which is in the same folder.
Start the service ‘named’

Perform nslookup command


CLIENT SIDE MACHINE

Perform nslookup command as follows.


APACHE SERVER
SERVER SIDE MACHINE ONLY
Configuration of DNS server is necessary before configuring apache
server.
Install and query the httpd package

Start httpd service at boot time using #chkconfig.

Configure virtual hosting

Make an html page in /var/www/html directory using vi command. Then


perform nslookup command
Go to /etc/httpd/conf/httpd.conf . go to the end of file and copy paste
the last 7 lines in the same file and change them according to your
requirement

Start the httpd service


Go to the browser and search 10.0.0.20 or server.tycs.com
DHCP CONFIGURATION
SERVER SIDE MACHINE

Installing the DHCP package

Query for seeing DHCP installed or not.


Setting Up network configuration
Go to main conf file of dhcp which /etc/dhcp/dhcpd.conf

From the sample conf file, copy the required contents to above file or
copy the whole file and paste it in dhcpd.conf and make changes as
given below.
Now start the service of dhcpd
CLIENT SIDE MACHINE
Open Edit Connection by clicking on computer in top right corner

Select eth0 and press edit and then choose Automatic(DHCP)


Open terminal and check the ip address is dhcp generated or not
Now restart the network service
NFS CONFIGURATION
SERVER SIDE MACHINE
Install NFS package or check if its installed or not as follows
You can use GUI method or else this command #rpm –ivh nfs*
o Nfs-utils-libs
o Nfs-utils
o Nfs4-acl-tools

Verify IP address of the linux machine to be setup as NFS server

Make a directory to be exported,create fewfiles into it and give it and


give it full permission as follows:
Open the configuration file of NFS, i.e. /etc/exports and write the
following lines as follows:

Then restart the services of nfs


Then close the firewall.

CLIENT SIDE MACHINE

Create another directory in root named nfsclient

Then put this command Showmount –e it will show all the exported files
from server.

You might also like