Skip to content

Latest commit

 

History

History
99 lines (87 loc) · 3.82 KB

day27-report.org

File metadata and controls

99 lines (87 loc) · 3.82 KB

2016-March-29-Tuesday:

From 9:30 AM TO 01:30 PM :

  • I gone through practised DHCP server, Installed and setup DHCP sever on Containers in OpenVZ.

Setup DHCP server on Centos:

  • Dynamic Host Configuration Protocol (DHCP) is used to assign IP addresses and other stuff like gateway and DNS details automatically to the clients. we need a DHCP server configured for offering ipaddress to the clients when it is required.

Installing DHCP server on Centos:

  • Update yum repositories and packages by typing the below command
[root@localhost ~]# yum update
  • Step 1 » Install dhcp server and client using the below command
[root@localhost ~]# yum install dhcp
  • Step 2 » After installing dhcp server packages along with dependencies .Assign a static ip (eg: “10.2.59.101”) in the same DHCP range for the listening interface ( eg : “eth1” ). Open /etc/sysconfig/network-scripts/ifcfg-eth1 file and make the changes as per your requirement .
HWADDR="00:0C:29:F1:01:4B"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="dhcp"
IPADDR=10.2.59.101
NETMASK=255.255.255.0
GATEWAY=10.2.59.1
  • Step 3 » Now open /etc/sysconfig/dhcpd file and add the preferred interface name to DHCPDARGS variable as below
# Command line options here
DHCPDARGS=eth1
  • Step 4 » open /etc/dhcp/dhcpd.conf file and paste the below lines and save it.
option domain-name "kraghupathi.com";

#specify DNS server ip and additional DNS server ip
option domain-name-servers 10.2.59.100;

# default lease time

default-lease-time 600;
# max lease time

max-lease-time 7200;
# this DHCP server to be declared valid

authoritative;
# specify network address and subnet mask

subnet 10.2.59.100 netmask 255.255.255.0 {
    # specify the range of lease IP address

    range dynamic-bootp 10.0.0.200 10.0.0.254;
    # specify broadcast address

    option broadcast-address 10.2.59.255;
    # specify default gateway

    option routers 10.2.59.1;
}
  • Step 5 » Now start the service
[root@localhost ~]# service dhcpd start
  • and type this below command to start dhcp service automatically while booting.
[root@localhost ~]# chkconfig dhcpd on

From 9:30 AM TO 01:30 PM :

  • I took DNS-Server, BIND(DNS)-Server and Installed BIND(DNS)-Sever on CentOS. I read about BIND server and completed various tutorials from online.

DNS-Server

  • Domain Name System (or Service or Server), an Internet service that translates domain names into IP addresses. Because domain names are alphabetic, they’re easier to remember. The Internet however, is really based on IP addresses. Every time you use a domain name, therefore, a DNS service must translate the name into the corresponding IP address.
nslookup www.example.com

The above command will give the ip address associated with www.example.com using DNS server.

BIND(DNS)-Sever:

  • BIND stands for Berkley Internet Naming Daemon. Which is the most common program used for maintaining a name server on Linux.

Advantages of DNS-Server:

  • DNS can be configured to allow dynamic secure updates, enhancing the security of your DNS infrastructure.
  • No need to memorise numbers.
  • Domain names makes / gives a kind of sense to hyper links when a name is given instead of a string of numbers .
  • Easy for categorising,archiving and inturn helping ( to an extent ) search engines.

Installing BIND(DNS) Server:

  • Update yum repositories and packages by typing the below command
[root@localhost ~]# yum update
  • Install BIND(DNS) Server using the below command
[root@masterdns ~]# yum install bind* -y