CPT 04 Dns
CPT 04 Dns
CPT 04 Dns
Concepts
This database has been divided hierarchically because its very bulk
com , net, edu, gov etc. are examples of first level divisions
For getting internet identity each and every organization should have a
domain name registration. Domain name registration means create a
sub session under a specific first level division
DNS
DNS database structure
Examples…
Microsoft.com
Abc.com
DNS
Zone
Reverse Lookup Zone has only one top level division in-addr.arpa
DNS
Zone
⮚ Stub
⮚ AD Integrated
DNS
How Primary and Secondary works …
BR Abc.com
c3 c4
DNS
Zone Transfer
⮚ Refresh time
⮚ Manually
DNS
DNS Records
A Name to IPV4
Host /Address
AAAA Name to IPV6
Host /Address
DNS
DNS Records
A Name to IPV4
Host /Address
AAAA Name to IPV6
Host /Address
CNAME Point to another record Alias
DNS
DNS Records
A Name to IPV4
Host /Address
AAAA Name to IPV6
Host /Address
CNAME Point to another record Alias
PTR IP to Name
Pointer
DNS
DNS Records
A Name to IPV4
Host /Address
AAAA Name to IPV6
Host /Address
CNAME Point to another record Alias
PTR IP to Name
Pointer
MX Mail Server of a domain
Mail Exchanger
DNS
DNS Records
A Name to IPV4
Host /Address
AAAA Name to IPV6
Host /Address
CNAME Point to another record Alias
PTR IP to Name
Pointer
MX Mail Server of a domain
Mail Exchanger
NS Name Server of a zone
Name Server
SOA Responsible Name Server Start of
Authority
SRV Service Location Records
DNS
Root Hints Server Cache Resolver Cache Iterative query
abc.com
bbc.com
How DNS Works…
cnn.com
123.com
IP
abc.com 123.com
bbc.com
cnn.com
www.abc.com
abc.com bbc.com
?
www.bbc.com
www.abc.com
Create Secondary for bbc.com
Create Stub zone for bbc.com
abc.com bbc.com
www.yahoo.com
www.bbc.com
www.abc.com
Conditional Forwarding
Forward all Unknown queries to ISP DNS Server
DNS
Dynamic DNS
DDNS allows..
C1 C2 C3
1.2
1.1 1.2
1.3 1.3
1.1
Philistia Learning
System
DNS
DNS Implimentation
Package bind
Script /etc/init.d/named
Daemon /usr/sbin/named
Port 53(Domain)
Configuration files /etc/named.conf
/etc/named.rfc1912.zones
/var/named/*
Philistia Learning
System
DNS
DNS Implimentation
$TTL 1D
@ IN SOA <hostname.> <responsible person.> (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS <hostname>
<hostname> IN A <IP>
Philistia Learning
System
DNS
DNS Implimentation
Philistia Learning
System
DNS
DNS Implimentation (Slave)
Philistia Learning
System
DNS
DNS Implimentation (Slave)
Philistia Learning
System
DNS
zone "1.200.200.in-addr.arpa" IN {
type master;
file "zone file";
};
Philistia Learning
System
DNS
$TTL 1D
@ IN SOA <hostname.> <responsible
person.> (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS <hostname>
Philistia Learning
System
DNS
options {.
.
.
forwarders { IP of target name server; };
};
$TTL 1D
@ IN SOA <hostname.> <responsible person.> (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS <hostname>
<hostname> IN A <IP>
$ORIGIN subdomain1.zonename.
www IN A <IP>
$ORIGIN subdomain2.zonename.
Philistia Learning
System
DNS
✔ dig -x IP Address
Philistia Learning
System