Posts

Showing posts from June, 2015

How to Configure DNS Server in RHEL 6?

Server IP Address: 192.168.1.121 Hostname: newyork.example.com [root@newyork named]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0c:29:a8:9e:61 NM_CONTROLLED=no ONBOOT=yes IPADDR=192.168.1.121 BOOTPROTO=none NETMASK=255.255.255.0 TYPE=Ethernet GATEWAY=192.168.1.1 IPV6INIT=no USERCTL=no [root@newyork named]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=newyork.example.com [root@newyork named]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] [root@newyork ~]# yum install -y *bind* caching-nameserver [root@newyork ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:A8:9E:61 inet addr: 192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:

How to Configure DNS Server in RHEL 6?

Server IP Address: 192.168.1.121 Hostname: newyork.example.com [root@newyork named]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0c:29:a8:9e:61 NM_CONTROLLED=no ONBOOT=yes IPADDR=192.168.1.121 BOOTPROTO=none NETMASK=255.255.255.0 TYPE=Ethernet GATEWAY=192.168.1.1 IPV6INIT=no USERCTL=no [root@newyork named]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=newyork.example.com [root@newyork named]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] [root@newyork ~]# yum install -y *bind* caching-nameserver [root@newyork ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:A8:9E:61 inet addr: 192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:2

How to enable grouplist in yum : RHEL 6 & 7 ?

You may encounter an error in yum if you type the following command : [root@ora ~]# yum grouplist Error: No group data available for configured repositories. In order to solve this problem do the following: Copy your entire dvd to any location in your system and configure yum. I have copied my entire DVD to the ‘/var/ftp/pub/repo/’ directory. And I have already configured yum. In order to enable group list feature execute the following. [root@ora ~]# createrepo –g /var/ftp/pub/repo/server/repodata/21f8a36d9 bca1b5b606702c5ce46b65017360348cace161b7910edfaa3cb087 -comps-rhel6-Server.xml var/ftp/pub/repo/Packages # The starting filename in the repodata folder can be anything # but you have to select the one which ends # with ‘-comps-rhel6-Server.xml’. Clean all the yum cache [root@ora ~]# yum clean all Make the cache again. [root@ora ~]# yum makecache Check if the grouplist feature is working. [root@ora ~]# yum grouplist

Install Sendmail Server on CentOS/RHEL7

Sendmail is a MTA (Mail Transfer Agent) server used for transferring email from between different hosts. Sendmail uses SMTP (Simple Mail Transfer Protocol) protocol. Most of system administrators preferred to use Sendmail server as MTA than other MTAs. RHEL 5 or its earlier versions were using Sendmail as default mail server, But newer version’s of RHEL based systems adapted postfix as default mail server. Most of users are familiar with Sendmail and want to use it with version 6 also. This article will help that users for installing Sendmail server on RHEL 7/6/5 or with minimal configuration. Installing Required Packages If you don’t have installed Sendmail using following command to install Sendmail with other required packages using yum package manager. # yum install sendmail sendmail-cf m4 Configure Sendmail Server Before starting configuration we must know about various Sendmail configuration files exists in /etc/mail directory. access — Allow/Deny other

OpenLDAP Server on Debian or Ubuntu

Image
1 Preliminary Note This tutorial is based on Debian 7.6 server, so you should set up a basic Debian 7.6 server installation before you continue with this tutorial. The system should have a static IP address. I use   192.168.0.100   as my IP address in this tutorial and   server1.example.com   as the hostname. I am using root credentials for installations, you can use   sudo   before the commands if you are installing it without   root . Note:The guide can be used for both Ubuntu/Debian server. 2 Install OpenLDAP 2.1 OpenLDAP installation We will install OpenLDAP as follows: apt-get update     apt-get install slapd ldap-utils Put the password and press   OK . I am using password   howtoforge , input your desired password. Confirm the password and press   OK . 2.2 OpenLDAP Configuration Now we will edit the configuration file to make the OpenLDAP server according to our environment. nano /etc/ldap/ldap.conf Give the entries as follows: # # LDAP Defaults # # See lda