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.example.com ns1 ; add below of 2 lines
* save and exit
[root@desktopX ~]# ping ns1.example.com
Step 03: Set Static Host Name and Reboot:
----------------------------------------
[root@desktopX ~]# vim /etc/hostname
ns1.example.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 "example.com" IN {
20 type master;
21 file "example.com.for";
22 allow-update { none; };
23 };
31 zone "11.168.192.in-addr.arpa" IN {
32 type master;
33 file "example.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 example.com.for
[root@ns1 named]# cp named.loopback example.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 example.com.for
-rw-r-----. 1 root root 168 Mar 21 13:59 example.com.rev
[root@ns1 named]# chgrp named example.com.*
[root@ns1 named]# ll example.com.*
-rw-r-----. 1 root named 152 Mar 21 13:59 example.com.for
-rw-r-----. 1 root named 168 Mar 21 13:59 example.com.rev
Step 09: Edit Forward Zone File:
--------------------------------
[root@ns1 named]# vim example.com.for
$TTL 1D
@ IN SOA ns1.example.com. root.example.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.example.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 example.com.rev
$TTL 1D
@ IN SOA ns1.example.com. root.example.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.example.com.
X IN PTR ns1.example.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.example.com
Server: 192.168.11.X
Address: 192.168.11.X#53
Name: ns1.example.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.example.com
status: NOERROR
[root@ns1 named]# ping www.google.com
======================= Thank you ======================
DNS Server Configuration

More Related Content

What's hot

Domain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsDomain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsAsif Shahzad
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptwebhostingguy
 
Dynamic Domain Name System
Dynamic Domain Name SystemDynamic Domain Name System
Dynamic Domain Name SystemRajan Kumar
 
Domain name system
Domain name systemDomain name system
Domain name systemfordcoppenz
 
Domain name service
Domain name serviceDomain name service
Domain name serviceishapadhy
 
Domain name server
Domain name serverDomain name server
Domain name serverMobile88
 
Domain Name System(DNS) - Overview
Domain Name System(DNS) - OverviewDomain Name System(DNS) - Overview
Domain Name System(DNS) - OverviewGunjan Panara
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server roleLuis Garay
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Servervipulvaid
 

What's hot (20)

Dns
DnsDns
Dns
 
Dns
DnsDns
Dns
 
7 understanding DNS
7 understanding DNS7 understanding DNS
7 understanding DNS
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
Dns(Domain name system)
Dns(Domain name system)Dns(Domain name system)
Dns(Domain name system)
 
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsDomain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.ppt
 
Dynamic Domain Name System
Dynamic Domain Name SystemDynamic Domain Name System
Dynamic Domain Name System
 
The History of DNS
The History of DNSThe History of DNS
The History of DNS
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Domain name service
Domain name serviceDomain name service
Domain name service
 
Domain name server
Domain name serverDomain name server
Domain name server
 
Dns
DnsDns
Dns
 
Domain Name System(DNS) - Overview
Domain Name System(DNS) - OverviewDomain Name System(DNS) - Overview
Domain Name System(DNS) - Overview
 
Dns
DnsDns
Dns
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Server
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Dns
DnsDns
Dns
 
main
mainmain
main
 

Similar to DNS Server Configuration

6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarderPiyush Kumar
 
3. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv63. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv6Piyush Kumar
 
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.
 
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
 
Linea de comandos bioface zem800
Linea de comandos bioface zem800Linea de comandos bioface zem800
Linea de comandos bioface zem800thomaswarnerherrera
 
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
 
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 nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfsChanaka 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Омские ИТ-субботники
 
Openstack 101
Openstack 101Openstack 101
Openstack 101POSSCON
 
linux_Commads
linux_Commadslinux_Commads
linux_Commadstastedone
 
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
 
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
 

Similar to DNS Server Configuration (20)

DNS Configure
DNS Configure DNS Configure
DNS Configure
 
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
 
3. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv63. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv6
 
Ex200
Ex200Ex200
Ex200
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
 
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
 
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
 
Linea de comandos bioface zem800
Linea de comandos bioface zem800Linea de comandos bioface zem800
Linea de comandos bioface zem800
 
Ass OS
Ass OSAss OS
Ass OS
 
Ass hđh
Ass hđhAss hđh
Ass hđh
 
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
 
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
 
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
 
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
 
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
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
linux_Commads
linux_Commadslinux_Commads
linux_Commads
 
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
 
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
 

Recently uploaded

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 

Recently uploaded (20)

Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 

DNS Server Configuration

  • 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.example.com ns1 ; add below of 2 lines * save and exit [root@desktopX ~]# ping ns1.example.com Step 03: Set Static Host Name and Reboot: ---------------------------------------- [root@desktopX ~]# vim /etc/hostname ns1.example.com [root@desktopX ~]# reboot Step 04: Install Required RPM:
  • 2. ------------------------------ [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 "example.com" IN { 20 type master; 21 file "example.com.for"; 22 allow-update { none; }; 23 }; 31 zone "11.168.192.in-addr.arpa" IN { 32 type master; 33 file "example.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 example.com.for [root@ns1 named]# cp named.loopback example.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 example.com.for -rw-r-----. 1 root root 168 Mar 21 13:59 example.com.rev [root@ns1 named]# chgrp named example.com.* [root@ns1 named]# ll example.com.* -rw-r-----. 1 root named 152 Mar 21 13:59 example.com.for -rw-r-----. 1 root named 168 Mar 21 13:59 example.com.rev Step 09: Edit Forward Zone File: -------------------------------- [root@ns1 named]# vim example.com.for $TTL 1D @ IN SOA ns1.example.com. root.example.com. ( 0 ; serial 1D ; refresh 1H ; retry
  • 3. 1W ; expire 3H ) ; minimum IN NS ns1.example.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 example.com.rev $TTL 1D @ IN SOA ns1.example.com. root.example.com. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS ns1.example.com. X IN PTR ns1.example.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.example.com Server: 192.168.11.X Address: 192.168.11.X#53 Name: ns1.example.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.example.com status: NOERROR [root@ns1 named]# ping www.google.com ======================= Thank you ======================