Академический Документы
Профессиональный Документы
Культура Документы
99 Dates: 7/5/18 - 14/5/18 Top Linux, AWS, Python and DevOps Courses for only $9.99
FOLLOW:
About Us Author’s World Privacy Policy Disclaimer eBooks (Free) DevOps Courses – Udemy 90% Off
GOOGLE SEARCH…
SHARE
17
Home Linux Distro’s Cloud Computing Virtualization DevOps Tools
FOSS AND LINUX DISTRO'S / REDHAT & CENTOS / RHEL 7 / UBUNTU/DEBIAN 2
0
BY YOGESH MEHTA · PUBLISHED JANUARY 24, 2017 · UPDATED JANUARY 24, 2017
Free course on Udemy –
Basics of BIND DNS Server
In this article and the below YouTube video , you’re going to see how to set up a DNS 0
Linux Free Course on Udemy -Linux
Server on RHEL/CnetOS 7. And also you will see how to add client machines to
Administration:
Administration: Beginner to
communicate with DNS Server. So follow the below steps to the quick configuration on the Beginner Advanced In Just 7 Days!
to
setup of BIND (Berkeley Internet Name Domain) service named. In Linux environments, we
Advanced
use Package name called Bind. In Just 7
Days!
What is DNS.?
Providing a network recycle
bin for Samba
The DNS it stands for Domain Name Server (DNS) is used to translate/resolve hostnames
into IP addresses, and the IP address into Hostnames. DNS zones are used to translate IP Bash Linux Command Line
addresses into hostnames. It is also used to deliver additional types of information to Scripting Interface and BASH Scripting
– Udemy 100% Free Coupon
DNS clients. An increasing number of services depend on DNS, which is why configuring DNS
is an important task for Linux administrators.
–Each DNS Zone file contain a number of records like A ,PTR,CNAME,MX,HINFO,NS and SOA
records.
A Record: The Address record holds The IP Address of the hostname.It resolves IP into
Hostname.
MX RECORD: it stands for mail exchange record, It’s responsible for Mail Hostnames.
NS RECORD: The Name Server record simply specifies the other name servers for the
domain.
SOA RECORD: It stands Start of authority. This record identifies the zone and
some parameters like the source host, serial number, refresh time, retry time, A expire time.
Time To Live (TTL)
Usage
Resource Record
domain.
What is Zone?
Zones contain all domain information. Basically, the zone refers to the branch of the DNS
tree for which a specific name server is responsible.
Now Let’s Start the Installation and Configuration of DNS Server on CentOS/RHEL 7.
Table of Contents
1. Setup Information
2. Pre-Requisite Infrastructure Configuration
3. Static IP for DNS server.
4. Local Host File on the DNS Server
5. SELINUX status.
6. DNS Server Software Installation.
7. Enabling DNS IP to access the DNS requests.
8. Firewall Settings.
9. DNS Server Configuration.
10. DNS Zone Files.
11. Configure permissions and ownerships on bind configuration files.
12. Perform Syntax check Validation on the Config files.
13. Start the BIND services.
14. DNS Server Testing.
1. Setup Details
In this lab setup, we are going to install and configure the BIND DNS service named. DNS
server listens to the DNS requests on port 53, which is the default port for name resolution
service
This is must and recommended to have a static IP configured on the DNS NIC.
To Configure Static IP/Connection for the network adaptor enp0s8 using with
nmcli(NetworkManager Command-line Interface). Follow below commands.
[root@master ~]# nmcli connection add con-name eth0 ifname enp0s8 type ethernet autoconnect
yes ip4 192.168.1.202/24 gw4 192.168.1.1
[root@master ~]# nmcli connection modify eth0 ipv4.dns 192.168.1.202,8.8.8.8
[root@master ~]# nmcli connection modify eth0 ipv4.method manual
After Configuring the Static IP for Network Device. Now Let’s down & up to Check the status of the
Network Connections.
BOOTPROTO=static
For static IP configuration on RHEL/CentOS 7, just click here. This article will give you
complete details about configuring the static IP.
Configuring the Static Hostname for DNS Server using the hostnamectl command.
Add The entry in /etc/hosts file like below to resolve the FQDN name with IP address
Before editing the Default configuration, make sure take a back of original configuration
file.
After Editing
[root@master ~]#
Once we have made the above changes, we can start the named service to ensure that
changes worked fine and service started without any problem.
Once the named service is started, we can check if named services are listening on DNS
server IP on port 53 for both TCP and UDP protocols.
[root@master ~]#
Above outputs confirms that DNS server is listening on loopback, DNS IP on port 53 for TCP
and UDP protocols.
5. Firewall Settings
In enterprise setup generally, operating system firewall is kept off as enterprise firewalls are
there to keep the network secure. In this lab setup, I am not going to disable the local
firewall as we don’t have enterprise firewalls here.
We will create firewall rules to accept the tcp/udp requests on port 53 reload the firewall
rules.
Once firewall rules configured and loaded, we can test it using nmap command. The
beauty of nmap utility is we can test both tcp and udp connectivity.
[root@master ~]#
zone “opensky.home” IN {
type master;
file “forward.opensky”;
allow-update { none; };
};
zone “1.168.192.in-addr.arpa” IN {
type master;
file “reverse.opensky”;
allow-update { none; };
};
Now create forward and reverse lookup files with the following contents
$TTL 86400
)
$TTL 86400
)
[root@master ~]#
1 2 »
Tags: DNS Server Configuration DNS Server Configuration on RHEL/CentOS 7 how to set up a DNS Server on RHEL/CnetOS 7
Yogesh Mehta
Yogesh Kumar is a Computer Geek and he works on multiple domains and also he strongly believes in sharing IT
knowledge and tricks and tips with others and adopts new technology with ease.
NTP Client Configuration and Management using Free Web-Ex online Training sessions for AWS, Ansible &
Ansible RHEL 7
Configuring KVM (Kernel-Based How to create and read Database and User Creation in
0 0 2
Virtual Machine) on RHEL/CentOS 7 QR/Barcode in Linux Terminal MariaDB on CentOS/Red Hat
DECEMBER 25, 2016 SEPTEMBER 22, 2017 SEPTEMBER 29, 2016
GOOGLE AD
*GOOGLE AD*
THE BEST COURSE ON UDEMY – A BEGINNER’S THE BEST COURSE ON UDEMY – SHELL THE BEST COURSE ON UDEMY – LINUX THE BEST COURSE ON UDEMY – LINUX
GUIDE TO LINUX SYSTEM ADMINISTRATION! SCRIPTING FOR LINUX BEGINNERS. GET ACADEMY RED HAT CERTIFIED SYSTEMS ACADEMY RED HAT CERTIFIED ENGINEER PREP
(75% OFF) STARTED WITH LINUX (75% OFF) ADMINISTRATOR PREP (75% OFF) (75% OFF)
THE BEST COURSE ON UDEMY – LINUX AND THE BEST CURSE ON UDEMY – SHELL SCRIPT THE BEST COURSE ON UDEMY – LINUX BASH UDEMY OFFER SALE – ONLY $15 – LINUX
BASH SHELL SCRIPTING FROM BEGINNER TO TUTORIAL – BASH SCRIPTING FOR SCRIPTING FOR BEGINNERS: WRITE YOUR OWN COMMAND LINE INTERFACE AND BASH
INTERMEDIATE (35% OFF) LINUX/UNIX/BASH (50% OFF) SCRIPTS (50% OFF) SCRIPTING
Google+ Linkedin Facebook Twitter Tumblr Pinterest Techinformant Courses – Udemy Offers
Tech Informant © 2019. All Rights Reserved.