Thursday, August 10, 2017

DNS configuration history in RHEL 5

   18  rpm -qa |bind
   19  rpm -qa |grep bind
   20  rpm -ivh bind-9.3.3-7.el5.i386.rpm 
   21  rpm -ivh bind-devel-9.3.3-7.el5.i386.rpm 
   22  rpm -ivh bind-libbind-devel-9.3.3-7.el5.i386.rpm 
   23  rpm -ivh bind-libs-9.3.3-7.el5.i386.rpm 
   24  rpm -ivh |grep bind
   25  rpm -qa |grep bind
   26  rpm -ivh bind-libbind-devel-9.3.3-7.el5.i386.rpm 
   27  rpm -ivh bind-libs-9.3.3-7.el5.i386.rpm 
   28  cd /var/named/chroot/var/named/
   32  rpm -qa |grep bind
   33  rpm -ivh bind-sdb-9.3.3-7.el5.i386.rpm 
   36  cd /var/named/chroot/
   42  ls named .conf
   43  ls named.conf
   44  service xinetd status
   45  cd /var/named/chroot/var/named/
   46  ls
   47  service iptables stop
   48  service iptables save
   49  setenforce 0
   50  ls
   57  ifconfig 
   58  ping 172.24.0.1
   59  chcon -R -t samba_share_t /data
   71  rpm -ivh caching-nameserver-9.3.3-7.el5.i386.rpm 
   72  cd /var/named/chroot/var/named/
   73  ls
   74  vi /var/named/chroot/etc/
   75  cd /var/named/chroot/etc/
   76  ls
   77  vi named.caching-nameserver.conf 
   78  ls
   79  cd /var/named/chroot/var/named/
   80  ls
   81  cp localdomain.zone for.example.com
   82  cp named.local rev.example.com
   83  chown root:named for.example.com
   84  chown root:named rev.example.com
   85  vi /etc/resolv.conf 
   86  vi /etc/hosts
   87  vi /etc/sysconfig/network-scripts/ifcfg-eth0 
   88  cd /var/named/chroot/etc
   89  cp named.caching-nameserver.conf named.conf
   90  chown root:named named.conf
   91  vi named.conf
   92  ls
   93  vi named.rfc1912.zones 
   94  cd /var/named/chroot/var/named/
   95  ls
   96  vi for.example.com 
   97  vi named.rfc1912.zones 
   98  vi rev.example.com 
   99  service named restart
  100  chkconfig named on
  101  dig -x 172.24.0.254

0 Comments: