Lesson 8 - Directing DNS
Lesson 8 - Directing DNS
2
This document is created by Nguyen Hoang Chi [email protected]
1 Configuring a DNS Server
4
This document is created by Nguyen Hoang Chi [email protected]
Understand DNS
5
This document is created by Nguyen Hoang Chi [email protected]
Understand DNS
6
This document is created by Nguyen Hoang Chi [email protected]
DNS softwares
pdnsd
dnsmasq
7
This document is created by Nguyen Hoang Chi [email protected]
Installing bind
8
This document is created by Nguyen Hoang Chi [email protected]
Bind services and daemons
Red Hat based Debian based
9
This document is created by Nguyen Hoang Chi [email protected]
Bind configuration files
10
This document is created by Nguyen Hoang Chi [email protected]
Bind zone database files
Red Hat based Debian based
11
This document is created by Nguyen Hoang Chi [email protected]
Configure Bind
1. Modify the /etc/named.conf or /etc/named.conf.option
OR
12
This document is created by Nguyen Hoang Chi [email protected]
Configure dnsclient to resolve
13
This document is created by Nguyen Hoang Chi [email protected]
Working with bind – traditional methods
14
This document is created by Nguyen Hoang Chi [email protected]
Working with bind – rndc
15
This document is created by Nguyen Hoang Chi [email protected]
Bind logging
Config in named.conf file
Channel
Category
16
This document is created by Nguyen Hoang Chi [email protected]
Bind logging - channels
17
This document is created by Nguyen Hoang Chi [email protected]
Bind logging - categories
18
This document is created by Nguyen Hoang Chi [email protected]
Create and maintain
2
DNS zones
Zone types
20
This document is created by Nguyen Hoang Chi [email protected]
Zone databases
Default zone databases located in either the /var/named/ directory or the
/etc/bind/ directory, depending on your server’s distribution
21
This document is created by Nguyen Hoang Chi [email protected]
Zone transfer
22
This document is created by Nguyen Hoang Chi [email protected]
Zone data - directives
$ORIGIN
The $ORIGIN directive sets a domain name that is added to any file record’s end that does
not have a full domain name. The general syntax is
$ORIGIN domain-name. [comment]
$INCLUDE
The $INCLUDE directive operates just like the include statement in a zone configuration
file. It reads in the designated file and processes any directives or resource records in the
file. The general syntax is as follows:
$INCLUDE filename [origin] [comment]
$TTL
The $TTL directive sets the default time to live (TTL), which determines how long name
server data for a particular resolution is held in cache. The general syntax is
$TTL seconds [comment]
23
This document is created by Nguyen Hoang Chi [email protected]
Zone data – resource record types
24
This document is created by Nguyen Hoang Chi [email protected]
Zone data – example
25
This document is created by Nguyen Hoang Chi [email protected]
Reverse zone
26
This document is created by Nguyen Hoang Chi [email protected]
Checking zone files
27
This document is created by Nguyen Hoang Chi [email protected]
Managing Bind zones - Delegating
Steps to delegating LPIC2.example.com zone to LPIC2.example.com server
28
This document is created by Nguyen Hoang Chi [email protected]
Managing Bind zones – Troubleshooting
29
This document is created by Nguyen Hoang Chi [email protected]
Managing Bind zones – Troubleshooting
30
This document is created by Nguyen Hoang Chi [email protected]
Managing Bind zones – Troubleshooting
31
This document is created by Nguyen Hoang Chi [email protected]
Managing Bind zones – Troubleshooting
32
This document is created by Nguyen Hoang Chi [email protected]
3 Securing a DNS server
34
This document is created by Nguyen Hoang Chi [email protected]
Jailing Bind
Steps to manually config chroot jail Bind Steps to chroot jail with bind-chroot
35
This document is created by Nguyen Hoang Chi [email protected]
DNSSEC
36
This document is created by Nguyen Hoang Chi [email protected]
DNSSEC
38
This document is created by Nguyen Hoang Chi [email protected]
Transaction Signature (TSIG)
39
This document is created by Nguyen Hoang Chi [email protected]
DANE (DNS based Authentication Named Entities)
40
This document is created by Nguyen Hoang Chi [email protected]
THANKS!
ANY QUESTIONS?
41
This document is created by Nguyen Hoang Chi [email protected]