Index of /Kuliah2012-2013/AdminJar
Domain Name System
Politeknik Elektronikan Negeri Surabaya
Institut Tekonolgi Sepuluh Nopember
Surabaya
Intro to DNS
!
!
*
"""
#$# %&' %() )
*+ *" *
Intro to DNS
,
,
.#
/
,
*
*
,
History
*
12 1
%0)$
34 5 565
34 5 565
,
/
,
12 1
,
34 5 565
7
34 5 565
+
-
,
/
,
+
,
34 5 565
History
-
, "
*
,
,
8
+
,
1
/
+
+
*
+
%0('*
,
+
-
297 ((#
((.
,
History
Resolver and name server
%
#
2
*
.
Kerja DNS
Struktur
+
5
!
!
6*
+
+
5
5
"
"
*
+
,
"
,
6
Struktur
Struktur
7
::
"""
5
;
;
5
;
"""
9<
"""
9
<
+
Hirarki
5
"
+
7
7
+
,
7
7
;
=
*
*
=
5
*
"""
*
;
+
7
=
*
Hirarki
*
5
+
7
5;
/
%#)
Top Level Domain (TLD)
>
*
"""
7
*
*
*
*
)
*
*
*
*
"
*
*
)
8*
*
+ *
1
*
7
7 7
*"
"
1
-
,
12 1
71
5
*
*
Root name servers
8
1
%.
Address root servers (2004)
1 2445
@ 2445
7 2445
2445
= 2445
7
9 2445
> 2445
3 2445
2445
B 2445
/ 2445
; 2445
- 2445
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=5
=5
=5
=5
=5
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=5
=5
=5
=5
=5
=5
=5
=5
?
*
* ?1
2 71
*7
!
7
+1
2
%0# #$. #.$ %$
!
!
1
?
2
1
C
7
+
1
2
+
;
42 !
*
=*=
1* ; 1
=* 5
*
*
%0( '% $ '
%0# ##( )0 #$%
%0# .. ' %#
%#( ( %$ 0$
%0# & & #'%
%0# %%# .A '
%#( A. # &.
%0# .A %'( %)
%0# &( %#( .$
%0. $ %' %#0
%0( .# A' %#
#$# %# #) ..
Recursive queries
Caching
!
++ *
/
D
+
Resource Records
db.mylab.com
2
22
2
+
+
8
@
8
2
+
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster.mylab.com. (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
;
mylab.com. IN
;
localhost
PC4.mylab.com.
PC3.mylab.com.
PC2.mylab.com.
PC1.mylab.com.
NS
PC4.mylab.com.
A
A
A
A
A
127.0.0.1
10.0.1.41
10.0.1.31
10.0.1.21
10.0.1.11
Resource Records
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster@mylab.com. (
1 ; serial
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
PC1.mylab.com.
A
10.0.1.11
Maksimum umur data
cache dalam detik
• Record Start of authority
(SOA) arti : “Zona
authoritative Name servernya 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
Software
2
;
E
@
,
+
#+
+
+
File--File Konfigurasi
File
+
B
+
+
8
F
8
F
named.conf
Blok dalam named.conf
G;
G
+
+
+
G
G
G +
8
+
1. Directory untuk
menempatkan file zone
H
:
J
J +
J
J
JD
J
J
D
:I
+
"
"
"
*
"
&.*
@
+@
(%
D
"
+
J
&.I
KI
2. Blok untuk mengatur akses
+
H
%#) $ $ %
KI
"H
I KI
8
::
3. Zone untuk root
H
I
+
:
:I
KI
8
4. Zone untuk localhost
:
:
H
I
+
:
"
8
H
:I
I KI
KI
5. Zone untuk reverse address
8
:$ $ %#)
:
I
+
KI
:
"
:I
H
I KI
H
options
@
+
options {
value “property”;
}
options : allowallow-query
-
D
+
"D
MKI
HL
options : allowallow-transfer
N
+
D
+
"
MKI
+
HL
options : directory
5
+
+
L
+
MI
options : forwarders
-
,
+ "
MI
D
+ "
+
+
L
+
options : forward
B
*
+
D
+ "
+ "
L+
*
MI
options : listenlisten-on
D
+
&.
L
KMI
H
options : recursion
, "
D
+
L
MI
include
@
+
+
acl
3
+
:
KI
+
:H
H #%A A& A' %'A .#I KI
H #$0 #& #.( #'I KI
H #$# %&' A. . .#I KI
named.ca
+
@
+
"
named.ca
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I+
I
5
+
+
8
+
+
+
5
+
+
+@
:
+
O+ F:
7
95
+
95
5=2
&* #$$#
+
8
5=2
7 =5
#$$#%%$&$%
7 =5
.A$$$$$
1 2445 =2?=2
=5
1 2445 =2?=2
=5
.A$$$$$
1
%0( '% $ '
I
I+
%
= !
I
.A$$$$$
@ 2445 =2?=2
=5
@ 2445 =2?=2
=5
.A$$$$$
1
%#( 0 $ %$)
I
I+
7
=5
I
.A$$$$$
7 2445 =2?=2
=5
Named.local
@
@
+
+
Named.local
P
41
%00)$##)$$ I
#(($$
I2 +
%''$$
I2
.A$$$$$ I =E
(A'$$
I-
%
52
Named.rev
-
+
Named.rev
A. %&' #$#
41
%
#$$$$(%$%# I
#(($$
I2 +
%''$$
I2
.A$$$$$ I =E
(A'$$
I%
#
'
&
A
52
52
52
"""
File ZONE
9
8
9
N4 =
22
"
41
"
15! 8
41
+
31 Q1
15!
SOA
P
41
#$$$$%$% I
( I2 +
# I2
%" I=E
% I55;
41
-
+
4+ 1
+
SOA
+
2 +
+
2
"
=E
,
55; 5
8
"
,
"
Resource Record
-
,
-
,
L
M
L
M
,
!
!
-
,
#
-
! "
" #!
,
!
Dynamic DNS
+
"
+
*
"
37 *
1
/
/ +
,
0
37
37 .
+
+
,
37
52
@
+
37
Politeknik Elektronikan Negeri Surabaya
Institut Tekonolgi Sepuluh Nopember
Surabaya
Intro to DNS
!
!
*
"""
#$# %&' %() )
*+ *" *
Intro to DNS
,
,
.#
/
,
*
*
,
History
*
12 1
%0)$
34 5 565
34 5 565
,
/
,
12 1
,
34 5 565
7
34 5 565
+
-
,
/
,
+
,
34 5 565
History
-
, "
*
,
,
8
+
,
1
/
+
+
*
+
%0('*
,
+
-
297 ((#
((.
,
History
Resolver and name server
%
#
2
*
.
Kerja DNS
Struktur
+
5
!
!
6*
+
+
5
5
"
"
*
+
,
"
,
6
Struktur
Struktur
7
::
"""
5
;
;
5
;
"""
9<
"""
9
<
+
Hirarki
5
"
+
7
7
+
,
7
7
;
=
*
*
=
5
*
"""
*
;
+
7
=
*
Hirarki
*
5
+
7
5;
/
%#)
Top Level Domain (TLD)
>
*
"""
7
*
*
*
*
)
*
*
*
*
"
*
*
)
8*
*
+ *
1
*
7
7 7
*"
"
1
-
,
12 1
71
5
*
*
Root name servers
8
1
%.
Address root servers (2004)
1 2445
@ 2445
7 2445
2445
= 2445
7
9 2445
> 2445
3 2445
2445
B 2445
/ 2445
; 2445
- 2445
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=5
=5
=5
=5
=5
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=2?=2
=5
=5
=5
=5
=5
=5
=5
=5
?
*
* ?1
2 71
*7
!
7
+1
2
%0# #$. #.$ %$
!
!
1
?
2
1
C
7
+
1
2
+
;
42 !
*
=*=
1* ; 1
=* 5
*
*
%0( '% $ '
%0# ##( )0 #$%
%0# .. ' %#
%#( ( %$ 0$
%0# & & #'%
%0# %%# .A '
%#( A. # &.
%0# .A %'( %)
%0# &( %#( .$
%0. $ %' %#0
%0( .# A' %#
#$# %# #) ..
Recursive queries
Caching
!
++ *
/
D
+
Resource Records
db.mylab.com
2
22
2
+
+
8
@
8
2
+
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster.mylab.com. (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
;
mylab.com. IN
;
localhost
PC4.mylab.com.
PC3.mylab.com.
PC2.mylab.com.
PC1.mylab.com.
NS
PC4.mylab.com.
A
A
A
A
A
127.0.0.1
10.0.1.41
10.0.1.31
10.0.1.21
10.0.1.11
Resource Records
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster@mylab.com. (
1 ; serial
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
PC1.mylab.com.
A
10.0.1.11
Maksimum umur data
cache dalam detik
• Record Start of authority
(SOA) arti : “Zona
authoritative Name servernya 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
Software
2
;
E
@
,
+
#+
+
+
File--File Konfigurasi
File
+
B
+
+
8
F
8
F
named.conf
Blok dalam named.conf
G;
G
+
+
+
G
G
G +
8
+
1. Directory untuk
menempatkan file zone
H
:
J
J +
J
J
JD
J
J
D
:I
+
"
"
"
*
"
&.*
@
+@
(%
D
"
+
J
&.I
KI
2. Blok untuk mengatur akses
+
H
%#) $ $ %
KI
"H
I KI
8
::
3. Zone untuk root
H
I
+
:
:I
KI
8
4. Zone untuk localhost
:
:
H
I
+
:
"
8
H
:I
I KI
KI
5. Zone untuk reverse address
8
:$ $ %#)
:
I
+
KI
:
"
:I
H
I KI
H
options
@
+
options {
value “property”;
}
options : allowallow-query
-
D
+
"D
MKI
HL
options : allowallow-transfer
N
+
D
+
"
MKI
+
HL
options : directory
5
+
+
L
+
MI
options : forwarders
-
,
+ "
MI
D
+ "
+
+
L
+
options : forward
B
*
+
D
+ "
+ "
L+
*
MI
options : listenlisten-on
D
+
&.
L
KMI
H
options : recursion
, "
D
+
L
MI
include
@
+
+
acl
3
+
:
KI
+
:H
H #%A A& A' %'A .#I KI
H #$0 #& #.( #'I KI
H #$# %&' A. . .#I KI
named.ca
+
@
+
"
named.ca
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I+
I
5
+
+
8
+
+
+
5
+
+
+@
:
+
O+ F:
7
95
+
95
5=2
&* #$$#
+
8
5=2
7 =5
#$$#%%$&$%
7 =5
.A$$$$$
1 2445 =2?=2
=5
1 2445 =2?=2
=5
.A$$$$$
1
%0( '% $ '
I
I+
%
= !
I
.A$$$$$
@ 2445 =2?=2
=5
@ 2445 =2?=2
=5
.A$$$$$
1
%#( 0 $ %$)
I
I+
7
=5
I
.A$$$$$
7 2445 =2?=2
=5
Named.local
@
@
+
+
Named.local
P
41
%00)$##)$$ I
#(($$
I2 +
%''$$
I2
.A$$$$$ I =E
(A'$$
I-
%
52
Named.rev
-
+
Named.rev
A. %&' #$#
41
%
#$$$$(%$%# I
#(($$
I2 +
%''$$
I2
.A$$$$$ I =E
(A'$$
I%
#
'
&
A
52
52
52
"""
File ZONE
9
8
9
N4 =
22
"
41
"
15! 8
41
+
31 Q1
15!
SOA
P
41
#$$$$%$% I
( I2 +
# I2
%" I=E
% I55;
41
-
+
4+ 1
+
SOA
+
2 +
+
2
"
=E
,
55; 5
8
"
,
"
Resource Record
-
,
-
,
L
M
L
M
,
!
!
-
,
#
-
! "
" #!
,
!
Dynamic DNS
+
"
+
*
"
37 *
1
/
/ +
,
0
37
37 .
+
+
,
37
52
@
+
37