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

PDF
Variations on PostgreSQL Replication
 
PDF
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
PPTX
Linux networking commands short
PDF
Variations of PostgreSQL Replication
 
PDF
A Review of PostgreSQL Replication Approaches - APJ
 
PPTX
linux networking commands short
PDF
3. reverse primarydns using bind for ptr and cname record ipv6
PDF
Presentation aix basic
Variations on PostgreSQL Replication
 
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
Linux networking commands short
Variations of PostgreSQL Replication
 
A Review of PostgreSQL Replication Approaches - APJ
 
linux networking commands short
3. reverse primarydns using bind for ptr and cname record ipv6
Presentation aix basic

What's hot (18)

PDF
Org Beamer
PDF
2. reverse primarydns using bind for ptr and cname record ipv4
PPT
Dpm Disaster Recovery Sonvu
PDF
Unix Command-Line Cheat Sheet BTI2014
TXT
PDF
linux-commandline-magic-Joomla-World-Conference-2014
TXT
Backup and restore router configuration
PDF
linux_Commads
PDF
One Page Linux Manual
PDF
Linux cheat-sheet
PDF
Containers for sysadmins
ODT
Terminal linux commands_ Fedora based
PDF
Basic commands
PDF
Unix / Linux Command Reference
PDF
Linux Bash Shell Cheat Sheet for Beginners
PDF
Basic security & info
DOCX
List command linux fidora
ODP
Linux-Fu for PHP Developers
Org Beamer
2. reverse primarydns using bind for ptr and cname record ipv4
Dpm Disaster Recovery Sonvu
Unix Command-Line Cheat Sheet BTI2014
linux-commandline-magic-Joomla-World-Conference-2014
Backup and restore router configuration
linux_Commads
One Page Linux Manual
Linux cheat-sheet
Containers for sysadmins
Terminal linux commands_ Fedora based
Basic commands
Unix / Linux Command Reference
Linux Bash Shell Cheat Sheet for Beginners
Basic security & info
List command linux fidora
Linux-Fu for PHP Developers
Ad

Viewers also liked (11)

PPTX
Andrea.pp
PDF
1st Laguna Blogging Summit
DOCX
Environnement article 1
PDF
State Lands Commission reference letter
PPTX
Para infrmatica 5
PDF
청년협업농장
DOC
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
PDF
Inftnxt lego
PDF
mail server
PDF
Configure active directory & trust domain
PPTX
Marketing Your Gigabit Fiber
Andrea.pp
1st Laguna Blogging Summit
Environnement article 1
State Lands Commission reference letter
Para infrmatica 5
청년협업농장
HISTORIA_INDIGENA_E_DO_INDIGENISMO_NO_AL
Inftnxt lego
mail server
Configure active directory & trust domain
Marketing Your Gigabit Fiber
Ad

Similar to DNS Configure (20)

PDF
DNS Server Configuration
PDF
Bind How To
PPTX
DNS SERVER
DOCX
DNS windows server(2008R2) & linux(SLES 11)
PDF
Dns configuration on rhel 5
PDF
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
PPT
lecture16&17 installation in kali linux and others.ppt
PDF
DNS (BIND) on CentOS
ODP
Tinydns and dnscache
PPTX
DNS server configuration
ODP
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
PDF
PDF
Athenticated smaba server config with open vpn
PDF
1. primary dns using bind for a and cname record for ipv4 and ipv6
PPTX
Linux routing and firewall for beginners
PDF
Configuration of BIND DNS Server On CentOS 8
PDF
Sharing your-internet-connection-on-linux
DOCX
Nat failover with dual isp on cisco router configuration explained with example
PDF
An Open Source Network Infrastructure (Is OS Software Suitable for SMEs?)
PPTX
Cisco CCNA IP SLA with tracking configuration
DNS Server Configuration
Bind How To
DNS SERVER
DNS windows server(2008R2) & linux(SLES 11)
Dns configuration on rhel 5
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
lecture16&17 installation in kali linux and others.ppt
DNS (BIND) on CentOS
Tinydns and dnscache
DNS server configuration
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
Athenticated smaba server config with open vpn
1. primary dns using bind for a and cname record for ipv4 and ipv6
Linux routing and firewall for beginners
Configuration of BIND DNS Server On CentOS 8
Sharing your-internet-connection-on-linux
Nat failover with dual isp on cisco router configuration explained with example
An Open Source Network Infrastructure (Is OS Software Suitable for SMEs?)
Cisco CCNA IP SLA with tracking configuration

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 ======================