SlideShare a Scribd company logo
1 of 4
Download to read offline
Application: Name Resulation
Name => IP (www.dbl-group.com => 203.112.194.17)
IP => Name (203.112.194.17 => www.dbl-group.com)
Daemon: named
Packages: bind
Port: 53
Protocol: TCP and UdP
Configuration file:
=> /etc/sysconfig/network-scripts/ifcfg-en*
=> /etc/hosts
=> /etc/hostname
=> /etc/named.conf
=> /etc/named.rfc1912.zones
=> /var/named/named.localhost (Forward Zone)
=> /var/named/named.looback (Reverse Zone)
Step 01: Set Static IP Address and DNS:
--------------------------------------
[root@desktopX ~]# cd /etc/sysconfig/network-scripts/
[root@desktopX network-scripts]# ls
[root@desktopX network-scripts]# vim ifcfg-en* ; your Interface name
NAME=********
HWADDR=*******
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.11.X
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
ONBOOT=yes
DNS1=192.168.11.X
[root@desktopX network-scripts]# systemctl stop NetworkManager.service
[root@desktopX network-scripts]# systemctl disable NetworkManager.service
[root@desktopX network-scripts]# systemctl restart network.service
[root@desktopX network-scripts]# cat /etc/resolv.conf
Step 02: Local resolver entry:
------------------------------
[root@desktopX ~]# vim /etc/hosts
192.168.11.X ns1.dbl-group.com ns1 ; add below of 2 lines
* save and exit
[root@desktopX ~]# ping ns1.dbl-group.com
Step 03: Set Static Host Name and Reboot:
----------------------------------------
[root@desktopX ~]# vim /etc/hostname
ns1.dbl-group.com
[root@desktopX ~]# reboot
Step 04: Install Required RPM:
------------------------------
[root@ns1 ~]# yum install bind* -y
Step 05: Allow DNS Server IP and Network:
----------------------------------------
[root@ns1 ~]# cp /etc/named.conf /etc/named.conf.backup
[root@ns1 ~]# vim /etc/named.conf
11 listen-on port 53 { 127.0.0.1; 192.168.11.X; };
12 # listen-on-v6 port 53 { ::1; };
17 allow-query { localhost; 192.168.11.0/24; };
Step 06: Set Forward and Reverse Zones:
---------------------------------------
[root@ns1 ~]# cp /etc/named.rfc1912.zones /etc/named.rfc1912.zones.backup
[root@ns1 ~]# vim /etc/named.rfc1912.zones
19 zone "dbl-group.com" IN {
20 type master;
21 file "dbl-group.com.for";
22 allow-update { none; };
23 };
31 zone "11.168.192.in-addr.arpa" IN {
32 type master;
33 file "dbl-group.com.rev";
34 allow-update { none; };
35 };
Step 07: Create Forward and Reverse Zone Files:
-----------------------------------------------
[root@ns1 Desktop]# cd /var/named/
[root@ns1 named]# ls
[root@ns1 named]# cp named.localhost dbl-group.com.for
[root@ns1 named]# cp named.loopback dbl-group.com.rev
[root@ns1 named]# ls -l
Step 08: Set Ownership to Forward and Reverse Zone Files:
---------------------------------------------------------
[root@ns1 named]# ll example.com.*
-rw-r-----. 1 root root 152 Mar 21 13:59 dbl-group.com.for
-rw-r-----. 1 root root 168 Mar 21 13:59 dbl-group.com.rev
[root@ns1 named]# chgrp named dbl-group.com.*
[root@ns1 named]# ll dbl-group.com.*
-rw-r-----. 1 root named 152 Mar 21 13:59 dbl-group.com.for
-rw-r-----. 1 root named 168 Mar 21 13:59 dbl-group.com.rev
Step 09: Edit Forward Zone File:
--------------------------------
[root@ns1 named]# vim dbl-group.com.for
$TTL 1D
@ IN SOA ns1.dbl-group.com. root.example.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.dbl-group.com.
IN A 192.168.11.X
ns1 IN A 192.168.11.X
Note:
-----
SOA - Start of Authority
IN - Internet
NS - Name Server (DNS Server)
A - Host Record (IP Address)
root - email admin
PTR - Pointer (Reverse)
Step 10: Edit Reverse Zone File:
--------------------------------
[root@ns1 named]# vim dbl-group.com.rev
$TTL 1D
@ IN SOA ns1.dbl-group.com. root.dbl-group.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.dbl-group.com.
X IN PTR ns1.dbl-group.com.
Step 11: Service restart and configured active at boot time:
------------------------------------------------------------
[root@ns1 named]# systemctl restart named.service
[root@ns1 named]# systemctl enable named.service
Step 12: Checking DNS
---------------------
[root@ns1 named]# nslookup ns1.dbl-group.com
Server: 192.168.11.X
Address: 192.168.11.X#53
Name: ns1.dbl-group.com
Address: 192.168.11.X
[root@ns1 named]# dig -x 192.168.11.X ; here -X is option
status: NOERROR
[root@ns1 named]# dig ns1.dbl-group.com
status: NOERROR
[root@ns1 named]# ping www.google.com
======================= Thank you ======================

More Related Content

What's hot

2. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv42. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv4Piyush Kumar
 
Dpm Disaster Recovery Sonvu
Dpm Disaster Recovery SonvuDpm Disaster Recovery Sonvu
Dpm Disaster Recovery Sonvuvncson
 
Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014Noé Fernández-Pozo
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014Peter Martin
 
Backup and restore router configuration
Backup and restore router configurationBackup and restore router configuration
Backup and restore router configurationVasilis Nikitaras
 
linux_Commads
linux_Commadslinux_Commads
linux_Commadstastedone
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manualdummy
 
Terminal linux commands_ Fedora based
Terminal  linux commands_ Fedora basedTerminal  linux commands_ Fedora based
Terminal linux commands_ Fedora basedNavin Thapa
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command ReferenceSumankumar Panchal
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersDavide Ciambelli
 
Basic security & info
Basic security & infoBasic security & info
Basic security & infoTola LENG
 
List command linux fidora
List command linux fidoraList command linux fidora
List command linux fidoraJinyuan Loh
 
Linux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLinux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLorna Mitchell
 

What's hot (18)

Org Beamer
Org BeamerOrg Beamer
Org Beamer
 
2. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv42. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv4
 
Dpm Disaster Recovery Sonvu
Dpm Disaster Recovery SonvuDpm Disaster Recovery Sonvu
Dpm Disaster Recovery Sonvu
 
Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014
 
Ass OS
Ass OSAss OS
Ass OS
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Backup and restore router configuration
Backup and restore router configurationBackup and restore router configuration
Backup and restore router configuration
 
linux_Commads
linux_Commadslinux_Commads
linux_Commads
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Containers for sysadmins
Containers for sysadminsContainers for sysadmins
Containers for sysadmins
 
Terminal linux commands_ Fedora based
Terminal  linux commands_ Fedora basedTerminal  linux commands_ Fedora based
Terminal linux commands_ Fedora based
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Basic security & info
Basic security & infoBasic security & info
Basic security & info
 
List command linux fidora
List command linux fidoraList command linux fidora
List command linux fidora
 
Linux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLinux-Fu for PHP Developers
Linux-Fu for PHP Developers
 

Viewers also liked

State Lands Commission reference letter
State Lands Commission reference letterState Lands Commission reference letter
State Lands Commission reference letterSamuel Duong ???
 
청년협업농장
청년협업농장청년협업농장
청년협업농장SeungTae Bae
 
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_ALHISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_ALRobin Wright
 
Configure active directory & trust domain
Configure active directory & trust domainConfigure active directory & trust domain
Configure active directory & trust domainTola LENG
 
Marketing Your Gigabit Fiber
Marketing Your Gigabit FiberMarketing Your Gigabit Fiber
Marketing Your Gigabit FiberRAD-INFO, Inc.
 

Viewers also liked (11)

Andrea.pp
Andrea.ppAndrea.pp
Andrea.pp
 
1st Laguna Blogging Summit
1st Laguna Blogging Summit1st Laguna Blogging Summit
1st Laguna Blogging Summit
 
Environnement article 1
Environnement article 1Environnement article 1
Environnement article 1
 
State Lands Commission reference letter
State Lands Commission reference letterState Lands Commission reference letter
State Lands Commission reference letter
 
Para infrmatica 5
Para infrmatica 5Para infrmatica 5
Para infrmatica 5
 
청년협업농장
청년협업농장청년협업농장
청년협업농장
 
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_ALHISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
 
Inftnxt lego
Inftnxt legoInftnxt lego
Inftnxt lego
 
mail server
mail servermail server
mail server
 
Configure active directory & trust domain
Configure active directory & trust domainConfigure active directory & trust domain
Configure active directory & trust domain
 
Marketing Your Gigabit Fiber
Marketing Your Gigabit FiberMarketing Your Gigabit Fiber
Marketing Your Gigabit Fiber
 

Similar to DNS Configure

DNS Server Configuration
DNS Server ConfigurationDNS Server Configuration
DNS Server Configurationchacheng oo
 
Linea de comandos bioface zem800
Linea de comandos bioface zem800Linea de comandos bioface zem800
Linea de comandos bioface zem800thomaswarnerherrera
 
DCEU 18: Tips and Tricks of the Docker Captains
DCEU 18: Tips and Tricks of the Docker CaptainsDCEU 18: Tips and Tricks of the Docker Captains
DCEU 18: Tips and Tricks of the Docker CaptainsDocker, Inc.
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfsChanaka Lasantha
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions Chanaka Lasantha
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOpsОмские ИТ-субботники
 
How to install squid proxy on server or how to install squid proxy on centos o
How to install squid proxy on server  or how to install squid proxy on centos oHow to install squid proxy on server  or how to install squid proxy on centos o
How to install squid proxy on server or how to install squid proxy on centos oProxiesforrent
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopLorin Hochstein
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsiChanaka Lasantha
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguideAdarsh Patil
 
Capital onehadoopclass
Capital onehadoopclassCapital onehadoopclass
Capital onehadoopclassDoug Chang
 
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce StackIQ
 
Network configuration
Network configurationNetwork configuration
Network configurationengshemachi
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Isham Rashik
 

Similar to DNS Configure (20)

DNS Server Configuration
DNS Server ConfigurationDNS Server Configuration
DNS Server Configuration
 
Linea de comandos bioface zem800
Linea de comandos bioface zem800Linea de comandos bioface zem800
Linea de comandos bioface zem800
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
 
Ass hđh
Ass hđhAss hđh
Ass hđh
 
Ex200
Ex200Ex200
Ex200
 
DCEU 18: Tips and Tricks of the Docker Captains
DCEU 18: Tips and Tricks of the Docker CaptainsDCEU 18: Tips and Tricks of the Docker Captains
DCEU 18: Tips and Tricks of the Docker Captains
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
 
How to install squid proxy on server or how to install squid proxy on centos o
How to install squid proxy on server  or how to install squid proxy on centos oHow to install squid proxy on server  or how to install squid proxy on centos o
How to install squid proxy on server or how to install squid proxy on centos o
 
Linux configer
Linux configerLinux configer
Linux configer
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
Linux networking
Linux networkingLinux networking
Linux networking
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguide
 
Capital onehadoopclass
Capital onehadoopclassCapital onehadoopclass
Capital onehadoopclass
 
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
 
Stacki - The1600+ Server Journey
Stacki - The1600+ Server JourneyStacki - The1600+ Server Journey
Stacki - The1600+ Server Journey
 
Network configuration
Network configurationNetwork configuration
Network configuration
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet
 

DNS Configure

  • 1. Application: Name Resulation Name => IP (www.dbl-group.com => 203.112.194.17) IP => Name (203.112.194.17 => www.dbl-group.com) Daemon: named Packages: bind Port: 53 Protocol: TCP and UdP Configuration file: => /etc/sysconfig/network-scripts/ifcfg-en* => /etc/hosts => /etc/hostname => /etc/named.conf => /etc/named.rfc1912.zones => /var/named/named.localhost (Forward Zone) => /var/named/named.looback (Reverse Zone) Step 01: Set Static IP Address and DNS: -------------------------------------- [root@desktopX ~]# cd /etc/sysconfig/network-scripts/ [root@desktopX network-scripts]# ls [root@desktopX network-scripts]# vim ifcfg-en* ; your Interface name NAME=******** HWADDR=******* TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.11.X NETMASK=255.255.255.0 GATEWAY=192.168.11.1 ONBOOT=yes DNS1=192.168.11.X [root@desktopX network-scripts]# systemctl stop NetworkManager.service [root@desktopX network-scripts]# systemctl disable NetworkManager.service [root@desktopX network-scripts]# systemctl restart network.service [root@desktopX network-scripts]# cat /etc/resolv.conf Step 02: Local resolver entry: ------------------------------ [root@desktopX ~]# vim /etc/hosts 192.168.11.X ns1.dbl-group.com ns1 ; add below of 2 lines * save and exit [root@desktopX ~]# ping ns1.dbl-group.com
  • 2. Step 03: Set Static Host Name and Reboot: ---------------------------------------- [root@desktopX ~]# vim /etc/hostname ns1.dbl-group.com [root@desktopX ~]# reboot Step 04: Install Required RPM: ------------------------------ [root@ns1 ~]# yum install bind* -y Step 05: Allow DNS Server IP and Network: ---------------------------------------- [root@ns1 ~]# cp /etc/named.conf /etc/named.conf.backup [root@ns1 ~]# vim /etc/named.conf 11 listen-on port 53 { 127.0.0.1; 192.168.11.X; }; 12 # listen-on-v6 port 53 { ::1; }; 17 allow-query { localhost; 192.168.11.0/24; }; Step 06: Set Forward and Reverse Zones: --------------------------------------- [root@ns1 ~]# cp /etc/named.rfc1912.zones /etc/named.rfc1912.zones.backup [root@ns1 ~]# vim /etc/named.rfc1912.zones 19 zone "dbl-group.com" IN { 20 type master; 21 file "dbl-group.com.for"; 22 allow-update { none; }; 23 }; 31 zone "11.168.192.in-addr.arpa" IN { 32 type master; 33 file "dbl-group.com.rev"; 34 allow-update { none; }; 35 }; Step 07: Create Forward and Reverse Zone Files: ----------------------------------------------- [root@ns1 Desktop]# cd /var/named/ [root@ns1 named]# ls [root@ns1 named]# cp named.localhost dbl-group.com.for [root@ns1 named]# cp named.loopback dbl-group.com.rev [root@ns1 named]# ls -l Step 08: Set Ownership to Forward and Reverse Zone Files: --------------------------------------------------------- [root@ns1 named]# ll example.com.* -rw-r-----. 1 root root 152 Mar 21 13:59 dbl-group.com.for -rw-r-----. 1 root root 168 Mar 21 13:59 dbl-group.com.rev [root@ns1 named]# chgrp named dbl-group.com.*
  • 3. [root@ns1 named]# ll dbl-group.com.* -rw-r-----. 1 root named 152 Mar 21 13:59 dbl-group.com.for -rw-r-----. 1 root named 168 Mar 21 13:59 dbl-group.com.rev Step 09: Edit Forward Zone File: -------------------------------- [root@ns1 named]# vim dbl-group.com.for $TTL 1D @ IN SOA ns1.dbl-group.com. root.example.com. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS ns1.dbl-group.com. IN A 192.168.11.X ns1 IN A 192.168.11.X Note: ----- SOA - Start of Authority IN - Internet NS - Name Server (DNS Server) A - Host Record (IP Address) root - email admin PTR - Pointer (Reverse) Step 10: Edit Reverse Zone File: -------------------------------- [root@ns1 named]# vim dbl-group.com.rev $TTL 1D @ IN SOA ns1.dbl-group.com. root.dbl-group.com. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS ns1.dbl-group.com. X IN PTR ns1.dbl-group.com. Step 11: Service restart and configured active at boot time: ------------------------------------------------------------ [root@ns1 named]# systemctl restart named.service [root@ns1 named]# systemctl enable named.service Step 12: Checking DNS
  • 4. --------------------- [root@ns1 named]# nslookup ns1.dbl-group.com Server: 192.168.11.X Address: 192.168.11.X#53 Name: ns1.dbl-group.com Address: 192.168.11.X [root@ns1 named]# dig -x 192.168.11.X ; here -X is option status: NOERROR [root@ns1 named]# dig ns1.dbl-group.com status: NOERROR [root@ns1 named]# ping www.google.com ======================= Thank you ======================