SlideShare a Scribd company logo
Berkeley Internet Name Domain
  BIND DNS Configuration
Introduction: BIND DNS
• DNS (Domain Name System), also known as a nameserver, is a network
  system that associates hostnames with their respective IP addresses.

• When a client host requests information from a nameserver, it usually
  connects to port 53. The nameserver then attempts to resolve the name
  requested.

• In a DNS server such as BIND, all information is stored in basic data elements
  called resource records (RR). The resource record is usually a fully qualified
  domain name (FQDN) of a host, and is broken down into multiple sections
  organized into a tree- like hierarchy.




                                                   BIND DNS Configuration
Hierarchy: bob.sales.example.com
• Each level of the hierarchy is divided by a period
  (that is, . ).

• com defines the top-level domain, example its subdomain, and sales the
  subdomain of example.

• In this case, bob identifies a resource record that is part of the
  sales.example.com domain. With the exception of the part furthest to the
  left (that is, bob), each of these sections is called a zone and defines a specific
  namespace.




                                                       BIND DNS Configuration
Zones files and Nameserver type
• Are stored on primary nameservers (also called master nameservers), where
  changes are made to the files, and secondary nameservers (also called slave
  nameservers), which receive zone definitions from the primary nameservers.

There are two nameserver configuration types:

  authoritative
  Authoritative nameservers answer to resource records that are part of their
  zones only. This category includes both primary (master) and secondary (slave)
  nameservers.

       recursive
       Recursive nameservers offer resolution services, but they are not
       authoritative for any zone. Answers for all resolutions are cached in a
       memory for a fixed period of time, which is specified by the retrieved
       resource record.
                                                   BIND DNS Configuration
BIND DNS Configuration
Files that needs to be configured (file directory will vary depends on your setup)
 name.conf         name.conf
 zone file         azrael.com.zone
 loop back         1.168.192.in-addr.arpa

Install all packages
 bind-libs-9.3.3-7.el5.i386.rpm2.
 bind-9.3.3-7.el5.i386.rpm3.
 bind-chroot-9.3.3-7.el5.i386.rpm4.
 bind-utils-9.3.3-7.el5.i386.rpm5.
 caching-nameserver-9.3.3-7.el5.i386.rpm

       NOTE: Check first if there’s an existing Bind on your system using

             [root@redhat root]# rpm –qa | grep –i bind
             [root@redhat root]# rpm –qa | grep –i caching


                                                           BIND DNS Configuration
BIND DNS Configuration
Directory without chroot
/etc/name.conf
/var/named/some.com.zone
/var/named/215.0.10.in-addr.arpa.zone

Directory with chroot

/var/named/chroot/var/named/some.com.zone
/var/named/chroot/ect/name.conf
/var/named/chroot/var/named/215.0.10.in-addr.arpa.zone

NOTE: Make sure that your IP address correct.




                                                BIND DNS Configuration
Code for trouble shooting
[root@redhat ~]# pwd
 to check which working environtment your are

[root@redhat ~]# ifconfig
show nit card configuration

[root@redhat ~]# rpm –qa | grep –i bind OR rpm –qa | grep –i caching
check if Bind/Caching is already installed

[root@redhat ~]# netstat -tuna
 to check which port is your configuration is listening

[root@redhat ~]# service named restart
to restart named service

             [root@redhat ~]# rndc status
             to check if services is up and running



                                                          BIND DNS Configuration
Code for trouble shooting
[root@redhat ~]# dig azrael.com NS
to look up a nameserver for a particular domain

[root@redhat ~]# dig azrael.com A
to look up an IP address assigned to a particular domain

[root@redhat ~]# host www.redhat.com
to host name resolution

[root@redhat ~]# nslookup www.azrael.com
to check query

          [root@redhat ~]# tail -20 /var/log/messages
          to check logs

          [root@redhat ~]# chgrp /var/named/(zone file)
          change all file permission (3 files)



   q                                                       BIND DNS Configuration
Things to Consider
 Make sure you NIT card is properly set up (IP address)

 Use [root@redhat ~]# ifconfig to check IP

 Make sure you have the right version (no version is the same setup as the other)

 Use [root@redhat ~]# tail -20 /var/log/messages                  to check logs

 Use [root@redhat ~]# chgrp /var/named/(zone file) to change
  directory permission




                                                   BIND DNS Configuration
BIND DNS Configuration: name.conf




                         BIND DNS Configuration
BIND DNS Configuration: some.com.zone




                         BIND DNS Configuration
BIND DNS Configuration:   215.0.10.in-addr.arpa.zone




                          BIND DNS Configuration

More Related Content

PDF
PPTX
Device Tree Overlay implementation on AOSP 9.0
PPT
Install and configure linux
PPTX
OSPF Basics
PDF
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
PDF
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
PDF
Instalar y configurar Servidor DNS en linux
PPTX
Storage
Device Tree Overlay implementation on AOSP 9.0
Install and configure linux
OSPF Basics
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Instalar y configurar Servidor DNS en linux
Storage

What's hot (20)

PPT
Linux Networking Commands
PDF
Linux Kernel - Virtual File System
PDF
Linux File System
PPTX
Linux SD/MMC device driver
PDF
Intrdouction to VRF Implementation.pdf
PPTX
VMware Advance Troubleshooting Workshop - Day 2
PDF
z/OS Communications Server: z/OS Resolver
PDF
Linux Locking Mechanisms
PDF
Linux introduction
DOCX
Instalación de Windows Server 2008 en una Maquina Virtual
PPTX
Linux Initialization Process (2)
PPTX
Windows File Systems
PPTX
OSPF Fundamental
PDF
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
PDF
Booting Android: bootloaders, fastboot and boot images
PDF
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
PDF
Xen and the art of embedded virtualization (ELC 2017)
PPT
"Learning AOSP" - Android Hardware Abstraction Layer (HAL)
Linux Networking Commands
Linux Kernel - Virtual File System
Linux File System
Linux SD/MMC device driver
Intrdouction to VRF Implementation.pdf
VMware Advance Troubleshooting Workshop - Day 2
z/OS Communications Server: z/OS Resolver
Linux Locking Mechanisms
Linux introduction
Instalación de Windows Server 2008 en una Maquina Virtual
Linux Initialization Process (2)
Windows File Systems
OSPF Fundamental
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Booting Android: bootloaders, fastboot and boot images
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Xen and the art of embedded virtualization (ELC 2017)
"Learning AOSP" - Android Hardware Abstraction Layer (HAL)
Ad

Viewers also liked (20)

PDF
Install Quagga - CheatSheet -
ODP
Networking in Gnu/Linux
PPT
Causes of Self immolation in Tibet
PPT
PPTX
DNS,SMTP and POP3
PDF
Presentation
PDF
DNS (BIND) on CentOS
DOCX
Dns centos
PPT
DOC
70 640
PPTX
6421 b Module-03
PDF
Comparative Development Methodologies
PPT
Multiview Methodology
PDF
クラウド時代のスケールアウト型テレメトリングシステムの考察
PDF
BIND 9 logging best practices
PPT
Chapter 4 configuring and managing the dns server role
PDF
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
PDF
Open dns configuring opendns on aruba controller
PDF
【ネットワーク仮想化 事例セミナー 2017/2/28】ジュニパーのネットワーク自動化のビジョン
PDF
ネットワーク仮想化と設計図を考える
Install Quagga - CheatSheet -
Networking in Gnu/Linux
Causes of Self immolation in Tibet
DNS,SMTP and POP3
Presentation
DNS (BIND) on CentOS
Dns centos
70 640
6421 b Module-03
Comparative Development Methodologies
Multiview Methodology
クラウド時代のスケールアウト型テレメトリングシステムの考察
BIND 9 logging best practices
Chapter 4 configuring and managing the dns server role
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
Open dns configuring opendns on aruba controller
【ネットワーク仮想化 事例セミナー 2017/2/28】ジュニパーのネットワーク自動化のビジョン
ネットワーク仮想化と設計図を考える
Ad

Similar to BIND DNS Configuration Red Hat 5 (20)

PPTX
DNS server configuration
PPTX
15 Setup BIND 9
PPTX
DNS Configuration
PDF
PPSX
Linux04 dns 2
PPTX
Ahmad-debian
PDF
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
ODP
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
PPT
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review
PPSX
Linux03_DNS
PDF
DNS Troubleshooting.pdf
PDF
DNS - Domain Name System
PPSX
Lesson 5: Configuring Name Resolution
DOC
Dns server
PDF
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
PPT
PPTX
DNS & SITES-SERVICES OF Active Directory.pptx
PDF
Configuration of BIND DNS Server On CentOS 8
PPT
Configuring Dns
PPT
Dns Configuration
DNS server configuration
15 Setup BIND 9
DNS Configuration
Linux04 dns 2
Ahmad-debian
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review
Linux03_DNS
DNS Troubleshooting.pdf
DNS - Domain Name System
Lesson 5: Configuring Name Resolution
Dns server
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder
DNS & SITES-SERVICES OF Active Directory.pptx
Configuration of BIND DNS Server On CentOS 8
Configuring Dns
Dns Configuration

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectroscopy.pptx food analysis technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation_ Review paper, used for researhc scholars
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Building Integrated photovoltaic BIPV_UPV.pdf
Machine learning based COVID-19 study performance prediction

BIND DNS Configuration Red Hat 5

  • 1. Berkeley Internet Name Domain BIND DNS Configuration
  • 2. Introduction: BIND DNS • DNS (Domain Name System), also known as a nameserver, is a network system that associates hostnames with their respective IP addresses. • When a client host requests information from a nameserver, it usually connects to port 53. The nameserver then attempts to resolve the name requested. • In a DNS server such as BIND, all information is stored in basic data elements called resource records (RR). The resource record is usually a fully qualified domain name (FQDN) of a host, and is broken down into multiple sections organized into a tree- like hierarchy. BIND DNS Configuration
  • 3. Hierarchy: bob.sales.example.com • Each level of the hierarchy is divided by a period (that is, . ). • com defines the top-level domain, example its subdomain, and sales the subdomain of example. • In this case, bob identifies a resource record that is part of the sales.example.com domain. With the exception of the part furthest to the left (that is, bob), each of these sections is called a zone and defines a specific namespace. BIND DNS Configuration
  • 4. Zones files and Nameserver type • Are stored on primary nameservers (also called master nameservers), where changes are made to the files, and secondary nameservers (also called slave nameservers), which receive zone definitions from the primary nameservers. There are two nameserver configuration types: authoritative Authoritative nameservers answer to resource records that are part of their zones only. This category includes both primary (master) and secondary (slave) nameservers. recursive Recursive nameservers offer resolution services, but they are not authoritative for any zone. Answers for all resolutions are cached in a memory for a fixed period of time, which is specified by the retrieved resource record. BIND DNS Configuration
  • 5. BIND DNS Configuration Files that needs to be configured (file directory will vary depends on your setup)  name.conf name.conf  zone file azrael.com.zone  loop back 1.168.192.in-addr.arpa Install all packages  bind-libs-9.3.3-7.el5.i386.rpm2.  bind-9.3.3-7.el5.i386.rpm3.  bind-chroot-9.3.3-7.el5.i386.rpm4.  bind-utils-9.3.3-7.el5.i386.rpm5.  caching-nameserver-9.3.3-7.el5.i386.rpm NOTE: Check first if there’s an existing Bind on your system using [root@redhat root]# rpm –qa | grep –i bind [root@redhat root]# rpm –qa | grep –i caching BIND DNS Configuration
  • 6. BIND DNS Configuration Directory without chroot /etc/name.conf /var/named/some.com.zone /var/named/215.0.10.in-addr.arpa.zone Directory with chroot /var/named/chroot/var/named/some.com.zone /var/named/chroot/ect/name.conf /var/named/chroot/var/named/215.0.10.in-addr.arpa.zone NOTE: Make sure that your IP address correct. BIND DNS Configuration
  • 7. Code for trouble shooting [root@redhat ~]# pwd to check which working environtment your are [root@redhat ~]# ifconfig show nit card configuration [root@redhat ~]# rpm –qa | grep –i bind OR rpm –qa | grep –i caching check if Bind/Caching is already installed [root@redhat ~]# netstat -tuna to check which port is your configuration is listening [root@redhat ~]# service named restart to restart named service [root@redhat ~]# rndc status to check if services is up and running BIND DNS Configuration
  • 8. Code for trouble shooting [root@redhat ~]# dig azrael.com NS to look up a nameserver for a particular domain [root@redhat ~]# dig azrael.com A to look up an IP address assigned to a particular domain [root@redhat ~]# host www.redhat.com to host name resolution [root@redhat ~]# nslookup www.azrael.com to check query [root@redhat ~]# tail -20 /var/log/messages to check logs [root@redhat ~]# chgrp /var/named/(zone file) change all file permission (3 files) q BIND DNS Configuration
  • 9. Things to Consider  Make sure you NIT card is properly set up (IP address)  Use [root@redhat ~]# ifconfig to check IP  Make sure you have the right version (no version is the same setup as the other)  Use [root@redhat ~]# tail -20 /var/log/messages to check logs  Use [root@redhat ~]# chgrp /var/named/(zone file) to change directory permission BIND DNS Configuration
  • 10. BIND DNS Configuration: name.conf BIND DNS Configuration
  • 11. BIND DNS Configuration: some.com.zone BIND DNS Configuration
  • 12. BIND DNS Configuration: 215.0.10.in-addr.arpa.zone BIND DNS Configuration