Professional Documents
Culture Documents
This is to certify that the project report entitled Network Administration and
Configuration in Linux submitted to University College Of Engineering & Technology
(VBU Hazaribag) in fulfillment of the final year project 2013 , is an original work carried out by
students of the group.
The matter embodied in this project is a genuine work done by the students and has been
submitted to this engineering college for the fulfillment of the project of course study.
At such an early stage of our career in COMPUTER SCIENCE Engineering and it‟s
applications we deem ourselves fortunate in having an opportunity to work in such project. A large
number of individuals had contributed directly in this project. We would like to thank the countless
number of people who have helped get this work out of door. While developing this project we had
to consult many people from different grounds of activity, which includes Linux Administrator,
Networking professional and many more.
First and foremost, we thank our project guide Faculty Name Asst. professor Ram
Parkash of UCET (VBU,Hazaribag), whose earnest suggestion, inspiration and involvement
paved the way for the successful completion of the project. We would like to offer our special
gratitude to them for sharing the ups and downs during the development and bearing inconvenience.
We also express our sincere gratitude to all the faculty members UCET VBU,Hazaribag for
their suggestions & enormous encouragement.
CONTENTS
Name Page No
1. Introduction
2. Platform and Tool
Information
3. Server
Configuration
a. Sendmail
Server
b. DNS Server
c. DHCP
server
1. Introduction
A server administrator or admin has the overall control of a server. This can
be in the context of a business organization, where often a server
administrator oversees the performance and condition of multiple servers
in the business, or it can be in the context of a single person running a game
server.
The admin for a server typically represents the owners and financiers of the
server. Alternatively, an owner can grant administrator rights to a regular
player (or clan member) on the server.
Anyone can also work as a Server Admin and be the brain of a company.
The Server Administrator's role is to design, install, administer, and
optimize company servers and related components to achieve high
performance of the various business applications supported by tuning the
servers as necessary. This includes ensuring the availability of client/server
applications, configuring all new implementations, and developing
processes and procedures for ongoing management of the server
environment. Where applicable, the Server Administrator will assist in
overseeing the physical security, integrity, and safety of the data
center/server farm.
The admin has power to configure the system using various tools available
or he/she can write scripts (may be shell script or other script written in any
scripting language). The servers generally used include http server (also
known as web server), DNS server, DHCP server, email server etc.
2. Platform and Tools Used
Host System
Guest Systems
Virtual Machine #1
Name: Centos
OS: Linux
Version: 6.3
Network Adapter: Host Only Networking
Adapter IP address: 192.168.56.2
Send mail SERVER
Overview
The three parts to message transfer agent are Mail Transfer Agent (MTA), the
Mail Delivery Agent (MDA), and the Mail User Agent (MUA). The MTA ,
commonly referred as mail server (of which Send mail and postfix are
examples), actually handles distributing outgoing mail and listening for incoming
mail from the Internet.
Package Used:
Sendmail-8.13.8-8.el5
Server Configuration
5. # useradd tanweer
Then to configure the pop3 (post office protocol ) .
6. # vi /etc/dovecot.conf
8 .# chkconfig sendmail on
9 .# chkconfig dovecot on
10. # mutt
#mutt
Press m.
Type subject.
Type the message.
Save the message (By pressing [ESC] +:wq).
Press y to send message.
Now use the chvt command to change the virtual
terminal.
# Chvt 2
.
DNS
The hierarchical Domain Name System, organized into zones, each served by a name server
Administrative responsibility over any zone may be divided by creating additional zones.
Authority is said to be delegated for a portion of the old space, usually in the form of sub-
domains, to another name server and administrative entity. The old zone ceases to be
authoritative for the new zone.
The definitive descriptions of the rules for forming domain names appear in RFC 1035, RFC
1123, and RFC 2181. A domain name consists of one or more parts, technically called labels
that are conventionally concatenated, and delimited by dots, such as ibm.com.
The right-most label conveys the top-level domain; for example, the domain name
www.ibm.com belongs to the top-level domain com.
The hierarchy of domains descends from right to left; each label to the left specifies a
subdivision, or sub domain of the domain to the right. For example: the label IBM specifies a
sub domain of the com domain, and www is a sub domain of ibm.com. This tree of
subdivisions may have up to 127 levels.
Each label may contain up to 63 characters. The full domain name may not exceed a total
length of 253 characters in its external dotted-label specification. In the internal binary
representation of the DNS the maximum length requires 255 octets of storage. In practice,
some domain registries may have shorter limits.
DNS names may technically consist of any character represent able in an octet. However,
the allowed formulation of domain names in the DNS roots zone, and most other sub
domains, uses a preferred format and character set. The characters allowed in a label are a
subset of the ASCII character set, and includes the characters a through z, A through Z,
digits 0 through 9, and the hyphen. This rule is known as the LDH rule (letters, digits,
hyphen). Domain names are interpreted in case-independent manner. Labels may not start
or end with a hyphen.
A hostname is a domain name that has at least one IP address associated. For example, the
domain names www.ibm.com and ibm.com are also hostnames, whereas the com domain is
not.
The permitted character set of the DNS prevented the representation of names and words of
many languages in their native alphabets or scripts. ICANN has approved the
Internationalizing Domain Names in Applications (IDNA) system, which maps Unicode
strings into the valid DNS character set using Puny code. In 2009 ICANN approved the
installation of IDN country code top-level domains. In addition, many registries of the
existing top level domain names (TLD)s have adopted IDNA.
REVERSE LOOKUP
A reverse lookup is a query of the DNS for domain names when the IP address is known.
Multiple domain names may be associated with an IP address. The DNS stores IP
addresses in the form of domain names as specially formatted names in pointer (PTR)
records within the infrastructure top-level domain arpa. For IPv4, the domain is in-
addr.arpa. For IPv6, the reverse lookup domain is ip6.arpa. The IP address is
represented as a name in reverse-ordered octet representation for IPv4, and reverse-
ordered nibble representation for IPv6.
When performing a reverse lookup, the DNS client converts the address into these formats, and then
queries the name for a PTR record following the delegation chain as for any DNS query. For example,
assume the IPv4 address 200.90.150.2 is assigned to IBM. It is represented as a DNS name in reverse
order like this: 2.150.90.200.in-addr.arpa. When the DNS resolver gets a PTR (reverse-lookup)
request, it begins by querying the root servers (which point to ARIN's servers for the 200.in-
addr.arpa zone). On ARIN's servers, 150.90.200.in-addr.arpa is assigned to IBM, so the
resolver sends another query to the IBM name server for 2.150.90.200.in-addr.arpa, which
results in an authoritative response
Secondary (Slave) name server: This name server gets all information for
the domain from the primary. As is the case for the primary, DNS
considers the secondary„s information about the domain that it serves
authoritative
Packages used:
bind
bind-devel-*
bind-utils-*
caching-nameserver-*
*-means version no and other are appended in the end of these package names.
CONFIGURING SERVER
1. Edit /var/named/chroot/etc/named.conf.
# vi /var/named/chroot/etc/named.conf
2. # cd /var/named/chroot/var/named/
3. # cp localhost.zone pune.com.zone
4. # cp named. local pune.com.local
5. # vi pune.com.zone
Save (: wq) and Exit
6. # vi pune.com.local
7. # chgrp named pune.com.local
8. # chgrp named pune.com.zone
9. # chgrp named /var/named/chroot/etc/named.conf
OVERVIEW
Because the DHCP protocol must work correctly even before DHCP clients
have been configured, the DHCP server and DHCP client must be connected
to the same network link. In larger networks, this is not practical. On such
networks, each network link contains one or more DHCP relay agents. These
DHCP relay agents receive messages from DHCP clients and forward them to
DHCP servers. DHCP servers send responses back to the relay agent, and the
relay agent then sends these responses to the DHCP client on the local
network link.
DHCP servers typically grant IP addresses to clients only for a limited interval.
DHCP clients are responsible for renewing their IP address before that interval
has expired, and must stop using the address once the interval has expired, if
they have not been able to renew it.
DHCP is used for IPv4 and IPv6. While both versions serve much the same
purpose, the details of the protocol for IPv4 and IPv6 are sufficiently different
that they may be considered separate protocols.
Hosts that do not use DHCP for address configuration may still use it to
obtain other configuration information. Alternatively, IPv6 hosts may
use stateless address auto configuration. IPv4 hosts may use link-local
addressing to achieve limited local connectivity.
Technical Overview
Technical Details
Package Used
Dhcp-3.0.5-31.el5
Server Configuration
A dialog with title “Host only network Details” will appear. Select “DHCP
Server Tab”. Uncheck “Enable Server”.
1 #
2 # DHCP Server Configuration file.
3 ddns-update-style interim;
4 ignore client-updates;
Websites:
http://www.redhat.com
http://www.ucs.com.uk/doc
/course-notes/unix-
courses/earlier/apache2/file
s/
http://www.infotech.com
http://www.wikipedia.com
http://www.centos.org
http://www-server-world.info