Domain Name System
Domain Name System
Domain Name System
Domain Name System
Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya Politeknik Elektronikan Negeri Surabaya
Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember Institut Tekonolgi Sepuluh Nopember
Intro to DNS Intro to DNS
!
! """"""
#$# %&' %() ) #$# %&' %() ) !
Intro to DNS Intro to DNS
Resolver and name server Resolver and name server
% %
2 2
#
# 22
**
Hirarki
""" **
Hirarki Hirarki
**
5 +
5 +
7 7 5;
5;
/ %#)
Top Level Domain (TLD) Top Level Domain (TLD)
Root name servers Root name servers
8888
1 %.
Address root servers (2004) Address root servers (2004)
1 2445
> 2445
Caching Caching
! ++ * +
! ++ * +
/ D
/ D
/ D
Resource Records Resource Records
2
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster.mylab.com. (
1 ; serial 28800 ; refresh 7200 ; retry
PC4.mylab.com. A 10.0.1.41
PC3.mylab.com. A 10.0.1.31
PC2.mylab.com. A 10.0.1.21
Resource Records Resource Records
Maksimum umur data cache dalam detik
• Record Start of authority (SOA) arti : “Zona
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com. hostmaster@mylab.com. (
1 ; serial
28800 ; refresh (SOA) arti : “Zona
authoritative Name server-nya Mylab.com”
•PC4.mylab.com adalah name server
•Email adress PICnya hostmaster@mylab.com
Record Name server (NS).
Address (A) records. Satu entry untuk setiap hostaddress
28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; ttl )
;
mylab.com. IN NS PC4.mylab.com.
;
localhost A 127.0.0.1
PC4.mylab.com. A 10.0.1.41
PC3.mylab.com. A 10.0.1.31
PC2.mylab.com. A 10.0.1.21
File
File--File KonfigurasiFile Konfigurasi
++
BB
+ 8
+ 8 FF
+ 8
Blok dalam named.conf Blok dalam named.conf
G ; + +
G +
G
G
G + 8
+
1. Directory untuk
menempatkan file zone
J
8 : : H
3. Zone untuk root
4. Zone untuk localhost
5. Zone untuk reverse address
8 :$ $ %#) : H
I
+ : :I
" H I KI
KI
options options
@ @
++
options { options {
options : allow
options : allow--queryquery
- D
+
" D HL MKI
options : allow
options : allow--transfertransfer
N + D
+
" + HL
" + HL
options : directory options : directory
5 + +
L MI
options : forwarders options : forwarders
- ,
+ " D +
+ " L +
MI +
options : forward options : forward
B *
+ D + " *
options : listen
options : listen--onon
D
+ &.
L H
options : recursion options : recursion
, "
D +
include include
@ +
acl acl
3 +
: + : H
: + : H
H #%A A& A' %'A .#I KI H #$0 #& #.( #'I KI
named.ca named.ca
++
@ + "
Named.local Named.local
@ +
@ +
@ +
Named.rev Named.rev
- +
File ZONE File ZONE
SOA SOA
P 41
#$$$$&#%$% I ( I2 +
# I2 %" I=E
% I- 55;
41 4+ 1
+ +
Resource Record Resource Record
- , L M
- , L M
,
! ! ! "
- ,
# " #! !
Dynamic DNS Dynamic DNS