Wednesday, 22 July 2015

DNS-oel6

Note: Select Network Infrastructure Server while OS Install:
Disable selinux:
/etc/sysconfig/selinux (disabled)
Disable firefox
vi /etc/hosts
setup
service network restart
chkconfig network on
mkdir -p /var/ftp/oel6/
cp /media/O*/Packages /var/ftp/oel6/
cp /media/O*/Server/repodata/* /var/ftp/oel6/Packages/
cp /media/O*/Server/repodata/*comps* /var/ftp/
cp /media/O*/Server/Tr* /var/ftp/oel6/
cp /media/O*/Server/list* /var/ftp/oel6/

vi /etc/sysconfig/ntpd
(-x)
cd /media/O*/Packages/
rpm -iUh vsftpd
rpm -iUh deltarpm*
rpm -iUh createrepo*
service vsftpd restart
chkconfig vsftpd on
service ntpd restart
chkconfig ntpd on
createrepo -vg /var/ftp/*comps* /var/ftp/oel6/Packages
mv /etc/yum.repos.d/pubic-yum-ol6.repo /etc/yum.repos.d/public-yum-ol6.repo.original
vi /etc/yum.repos.d/public-yum-ol6.repo

[Packages]
name=file:///var/ftp/oel6/Packages
baseurl=file:///var/ftp/oel6/Packages/
enabled=1
gpgcheck=0


1) Install Package
yum install bind*

2) Configure IP
#DNS&DHCP Server
eth0 192.9.201.59    server1.shilpa.com
netmask 255.255.255.0

~~~~~~~~~~~~~~~
setup (eth0 + dns)
service network restart
ifconfig
vi /etc/hosts
vi /etc/resolv.conf

vi /etc/named.conf
vi /etc/named.rfc1912.zones
vi /var/named/forward.zone -->localhost
vi /var/named/reverse.zone -->loopback
vi /var/named/reverse1.zone -->loopback
chgrp named forward.zone
chgrp named reverse.zone
chgrp named reverse1.zone
chgrp named named.conf
chgrp named.rfc1912.zones

service named start
chkconfig named on

For errors: /var/log/messages
Other Commands:
vim /etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network
dig host.domain.com
dig -x
ifconfig
route
netstat -r -n

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DHCP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Sep 2 19:43:16 cpanel named[22767]: network unreachable resolving 'ns.isc.afilias-nst.info/A/IN': 2001:500:7::79#53

To fix this you have to start the bind damon with "-4" (IPv4 only). You can add the line "OPTIONS="-4"" to /etc/sysconfig/named to do so.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ps ax | grep dhcp*

kill -9

Notes:

yum install dhcp*

vim /etc/dhcp/dhcpd.conf
 service dhcpd start
chkconfig dhcpd on

No comments:

Post a Comment