SlideShare a Scribd company logo
Bind How-to
                                                 REV 3



1. Do a Linux Server install and ensure that the DNS server is installed as an option. During the install,
   check the box for custom packages, then uncheck the XWindows and desktop options, as well as any
   server other than the DNS server. Install admin tools but not applications or programming tools. Set the
   hostname during install for whatever FQDN you will be using for the DNS server.

I am using an example zone name of domain1.com. You should substitute your own domain
name where ever you see the name domain1.com.

2. There are two file locations that you are concerned about. The /etc/named.conf file defines what zones
   are to be used. The /var/named/chroot/var/named directory holds the various zones files. The zone
   files define the host records for each zone. Once the named.conf file is setup, you just have to work with
   the zone files to add or delete host records.

3. Copy one of the generic zone files and rename it so you can start to set up your own zone.
   cp /var/named/chroot/var/named/localhost.zone /var/named/chroot/var/named/domain1.com.zone
   where “domain1.com is to be substituted with the name of your actual zone name.

4. Change the owner.group of the new file to the named user and group
   chown named.named /var/named/chroot/var/named/domain1.com.zone

5. Make a symbolic link:
   ln –s /var/named/chroot/var/named/doamin1.com.zone /var/named/domain1.com.zone

6. Edit the /etc/named.conf file and add the zone reference right after the zone “localhost” stanza.
   See attachment 1.

7. Change the file you made, /var/named/chroot/var/named/domain1.com.zone to the proper zone
   information. See attachment 2.


8. Add host names and IP addresses as needed.

9. Start DNS server using: service named start|stop|reload. Do a reload anytime the files are changed.

10. Check that the server is working by:

       a. Change the /etc/resolv.conf file to reflect your computers IP address. If this is to be a real DNS
           server, make the IP address 127.0.0.1 in resolv.conf
       b. Use the dig or nslookup or host commands to see if an IP address for a host name you put in the
           zone file will be given back to you. You should get an immediate lookup.
       Examples:
       [dig server1.domain1.com] [nslookup server1.domain1.com] host –v server1.domain1.com]



   Have verified by your instructor.
Attachment #1     /etc/named.conf

options             {
                    directory "/var/named";
                    dump-file "/var/named/data/cache_dump.db";
                    statistics-file "/var/named/data/named_stats.txt";
                    allow-query { any; };
                    allow-transfer { any; };
};

controls {
                    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
             };

zone "." IN {
                    type hint;
                    file "named.ca";
             };

zone "localdomain" IN {
                  type master;
                  file "localdomain.zone";
                  allow-update { none; };
          };

zone “localhost” IN {
                  type master;
                  file “localhost.zone”;
                  allow-update { none; }
         };

zone "domain1.com" IN {
                type master;
                file "domain1.com.zone";
                allow-update { none; };
         };

zone "1.168.192.in-addr.arpa" IN {
                  type master;
                  file "192.168.1.zone";
                  allow-update { none; };
          };

zone "0.0.127.in-addr.arpa" IN {
                   type master;
                   file "named.local";
                   allow-update { none; };
           };

zone "255.in-addr.arpa" IN {
                   type master;
                   file "named.broadcast";
                   allow-update { none; };
          };

zone “0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa” IN {
                    type master;
                    file “named.ip6.local”;
                    allow-update { none; };
          };

zone "0.in-addr.arpa" {
                    type master;
                    file "named.zero";
                    allow-update { none; };
           };

include "/etc/rndc.key";
Attachment # 2    File for /var/named/chroot/var/named/domain1.com.zone

$TTL 86400
$ORIGIN domain1.com.
// The above line specifies a domain name and will be appended
// to any host name only, not a FQDN

domain1.com. IN SOA server1.domain1.com. root.domain1.com (

                             44     ; serial # for secondary updates
                             3H     ; refresh after 3 hours
                             15M    ; retry after 15 min
                             1W     ; expire after 1 week
                             1D )   ; negative caching ttl

domain1.com.         NS  server1.domain1.com.
server1      IN      A   192.168.1.6
www          IN      CNAME server1.domain1.com.

More Related Content

PPTX
DNS SERVER
PPTX
Basic unix
PPT
PPTX
BIND DNS Configuration Red Hat 5
PDF
DNS (BIND) on CentOS
PDF
Linux command line
PPTX
Linux tech talk
PDF
The Linux Command Cheat Sheet
DNS SERVER
Basic unix
BIND DNS Configuration Red Hat 5
DNS (BIND) on CentOS
Linux command line
Linux tech talk
The Linux Command Cheat Sheet

What's hot (20)

DOCX
Dns centos
PDF
Linux Commands - Cheat Sheet
PDF
commands v2.3.1
ODP
Introduction to Diskless Remote Boot in Linux
PDF
4 technical-dns-workshop-day2
PDF
3.1.a linux commands reference
PDF
Linux Basic Commands
PDF
Object Storage with Gluster
ODP
Nmap Scripting Engine and http-enumeration
PDF
Unix commands
PPTX
Linux And perl
PDF
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
PPTX
Unix slideshare
PDF
Linux Network commands
PPTX
[MathWorks] Versioning Infrastructure
DOCX
Linux test paper2
PPTX
PDF
What Have Syscalls Done for you Lately?
PPTX
Dns server setup on ubuntu vps (master+slave)
Dns centos
Linux Commands - Cheat Sheet
commands v2.3.1
Introduction to Diskless Remote Boot in Linux
4 technical-dns-workshop-day2
3.1.a linux commands reference
Linux Basic Commands
Object Storage with Gluster
Nmap Scripting Engine and http-enumeration
Unix commands
Linux And perl
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
Unix slideshare
Linux Network commands
[MathWorks] Versioning Infrastructure
Linux test paper2
What Have Syscalls Done for you Lately?
Dns server setup on ubuntu vps (master+slave)
Ad

Viewers also liked (20)

PPTX
Retrieving Data From A Database
XLSX
PPTX
C,C++ In Matlab
PPT
Paramount Search Partners
PPT
Facebook: An Innovative Influenza Pandemic Early Warning System
PPTX
Data Applied:Decision Trees
PPTX
Introduction To R
PPTX
Ireland Apo University Fy 10 Tibbs Slideshare
PPTX
LISP: Errors In Lisp
PDF
Norihicodanch
PPTX
InfoChimps.Org
PPT
Asha & Beckis Nc Presentation
PPTX
Data-Applied: Technology Insights
PPTX
Data Applied:Tree Maps
ODP
Oratoria E RetóRica Latinas
PPT
HistoriografíA Latina LatíN Ii
PPTX
Introduction to Data-Applied
PPTX
LISP: Scope and extent in lisp
PPTX
SPSS: File Managment
Retrieving Data From A Database
C,C++ In Matlab
Paramount Search Partners
Facebook: An Innovative Influenza Pandemic Early Warning System
Data Applied:Decision Trees
Introduction To R
Ireland Apo University Fy 10 Tibbs Slideshare
LISP: Errors In Lisp
Norihicodanch
InfoChimps.Org
Asha & Beckis Nc Presentation
Data-Applied: Technology Insights
Data Applied:Tree Maps
Oratoria E RetóRica Latinas
HistoriografíA Latina LatíN Ii
Introduction to Data-Applied
LISP: Scope and extent in lisp
SPSS: File Managment
Ad

Similar to Bind How To (20)

ODP
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
PDF
PDF
Configuration of BIND DNS Server On CentOS 8
PPTX
Linux Addministration
PPTX
DNS for Developers - ConFoo Montreal
PPTX
DNS for Developers - NDC Oslo 2016
PPT
lecture16&17 installation in kali linux and others.ppt
PDF
Rac on NFS
PPTX
Hadoop 20111117
ODP
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
PDF
Belvedere
PDF
linux installation.pdf
PPTX
File Transfer Protocol
PPTX
15 Setup BIND 9
PDF
Linux redhat final
PDF
PPT
Apache1.ppt
PDF
SFScon 22 - Dashamir Hoxha - Manage your own DNS.pdf
PPT
Apache1.ppt
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
Configuration of BIND DNS Server On CentOS 8
Linux Addministration
DNS for Developers - ConFoo Montreal
DNS for Developers - NDC Oslo 2016
lecture16&17 installation in kali linux and others.ppt
Rac on NFS
Hadoop 20111117
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Belvedere
linux installation.pdf
File Transfer Protocol
15 Setup BIND 9
Linux redhat final
Apache1.ppt
SFScon 22 - Dashamir Hoxha - Manage your own DNS.pdf
Apache1.ppt

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PDF
KodekX | Application Modernization Development
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Big Data Technologies - Introduction.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Programs and apps: productivity, graphics, security and other tools
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
MIND Revenue Release Quarter 2 2025 Press Release
MYSQL Presentation for SQL database connectivity
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
KodekX | Application Modernization Development
sap open course for s4hana steps from ECC to s4
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Big Data Technologies - Introduction.pptx
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Bind How To

  • 1. Bind How-to REV 3 1. Do a Linux Server install and ensure that the DNS server is installed as an option. During the install, check the box for custom packages, then uncheck the XWindows and desktop options, as well as any server other than the DNS server. Install admin tools but not applications or programming tools. Set the hostname during install for whatever FQDN you will be using for the DNS server. I am using an example zone name of domain1.com. You should substitute your own domain name where ever you see the name domain1.com. 2. There are two file locations that you are concerned about. The /etc/named.conf file defines what zones are to be used. The /var/named/chroot/var/named directory holds the various zones files. The zone files define the host records for each zone. Once the named.conf file is setup, you just have to work with the zone files to add or delete host records. 3. Copy one of the generic zone files and rename it so you can start to set up your own zone. cp /var/named/chroot/var/named/localhost.zone /var/named/chroot/var/named/domain1.com.zone where “domain1.com is to be substituted with the name of your actual zone name. 4. Change the owner.group of the new file to the named user and group chown named.named /var/named/chroot/var/named/domain1.com.zone 5. Make a symbolic link: ln –s /var/named/chroot/var/named/doamin1.com.zone /var/named/domain1.com.zone 6. Edit the /etc/named.conf file and add the zone reference right after the zone “localhost” stanza. See attachment 1. 7. Change the file you made, /var/named/chroot/var/named/domain1.com.zone to the proper zone information. See attachment 2. 8. Add host names and IP addresses as needed. 9. Start DNS server using: service named start|stop|reload. Do a reload anytime the files are changed. 10. Check that the server is working by: a. Change the /etc/resolv.conf file to reflect your computers IP address. If this is to be a real DNS server, make the IP address 127.0.0.1 in resolv.conf b. Use the dig or nslookup or host commands to see if an IP address for a host name you put in the zone file will be given back to you. You should get an immediate lookup. Examples: [dig server1.domain1.com] [nslookup server1.domain1.com] host –v server1.domain1.com] Have verified by your instructor.
  • 2. Attachment #1 /etc/named.conf options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; allow-query { any; }; allow-transfer { any; }; }; controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; }; zone "localdomain" IN { type master; file "localdomain.zone"; allow-update { none; }; }; zone “localhost” IN { type master; file “localhost.zone”; allow-update { none; } }; zone "domain1.com" IN { type master; file "domain1.com.zone"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master; file "192.168.1.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "255.in-addr.arpa" IN { type master; file "named.broadcast"; allow-update { none; }; }; zone “0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa” IN { type master; file “named.ip6.local”; allow-update { none; }; }; zone "0.in-addr.arpa" { type master; file "named.zero"; allow-update { none; }; }; include "/etc/rndc.key";
  • 3. Attachment # 2 File for /var/named/chroot/var/named/domain1.com.zone $TTL 86400 $ORIGIN domain1.com. // The above line specifies a domain name and will be appended // to any host name only, not a FQDN domain1.com. IN SOA server1.domain1.com. root.domain1.com ( 44 ; serial # for secondary updates 3H ; refresh after 3 hours 15M ; retry after 15 min 1W ; expire after 1 week 1D ) ; negative caching ttl domain1.com. NS server1.domain1.com. server1 IN A 192.168.1.6 www IN CNAME server1.domain1.com.