Dns Server Configuration In Linux 6 Step By Step Pdf Merge
Thus you can load the kernel. Using the command- line interface, you type the drive. Interface, you just select an OS using the arrow keys. Based on a configuration file which you prepare beforehand. While in the menu, you. Portal Home Knowledgebase General VPS DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 DNS, Domain Name System, translates hostnames or URLs into IP addresses.
HOW TO CONFIGURE LINUX DNS SERVER STEP BY STEP GUIDE EXAMPLE AND IMPLEMENTATION
|
Step by Step how to setup a DNS Server in RHEL 6.2/6.4/6.5 Using Bind
What is DNS Server ?
DNS = Domain Naming Service (or) Domain Name SystemDNS will resolve the host name for the particular IP address.
6 Step Stool
Here Im Using RHEL Server to Setup the DNS Server using BIND
Primary DNS Server (or) Master DNS Server:
Secondary DNS Server (or) Slave DNS Server:
Nodes Machines :
- Primary DNS Server (or) Master DNS Server :
- Then Edit the Configuration of name server
Save and Exit the named.conf using wq!
- Creat the Forward and Reserve Zone files as mentioned in named.conf
FORWARD ZONE :
a.) Create a Forward Zone file under /var/named in the name of forward.linuxzadmin
There are Sample files under the /var/named/ Directory, Just make a Copy of that file and modify it as our need
b.) Make a Copy of sample file as below
c.) Edit the file forward.linuxzadmin
RESERVE ZONE:
a.) Create a Reserver Zone file under /var/named in the name of reverse.linuxzadmin
There are Sample files under the /var/named/ Directory, Just make a Copy of that file and modify it as our need
b.) Make a Copy of sample file as below
c.) Edit the file reverse.linuxzadmin
- The files we created was in root groupWe need to change those files to named group
Here we can see the files which have the root group
a.) List the files and see the permissions and group of those created zone files
b.) Change the group to named using below Command
Here we can see the Output now which changed to named group
c.) Then we need to check the Context of the files under
It want to be in the context of named_conf_t
If its Different than this then we need to restore the context using
- Now we need to Check for the Error in the conf file and Zone file
- Start the DNS Service
- Make the named Service in runlevels
- Deploy iptables Rules to allow DNS service
Add the iptables rules
Save the iptables Using
Restart the iptables Service Using
Make it to run in multi run levels
- Check the DNS server using Dig Command
- Check for the Available Hosts in DNS
Now we Need to Setup the Slave DNS server
Secondary DNS server (or) Slave DNS Server
- Host Deployed with RHEL Server
- Insatall the BIND package in Server
- Edit the named.conf to add the configuration
- Start the named Service and make it to Run in Multi Runlevels
- We Don't need to Create the Zone file here, If will be resolved from Master Server While we Start the Named Service
- Here we can Check the Both File's
This is the Out put of linuxzadmin.rev
- Check the DNS Server using dig from Slave Server
Client Side :
- Now we Need to Assign the Name Server for the Node's in our network to get assigned a host name from DNS server.
Use the Setup Command and assign the Primary and Secondary DNS server'sWe Don't need to Assing the hostname
a.) Just Assign the IP, Subnet, Gateway, PDNS, SDNS
b.) Restart the Network and Check the hostname
c.) Here i have not changed the hostname
d.) Here we can see the hostname Assigned from the DNS server
e.) If we need to check the DNS just do a Dig
- If we need to flush the DNS Server Caches Use Below Command
That's it we have a DNS server now in RHEL Server