Professional Documents
Culture Documents
Bai 10
Bai 10
HCM
TRNG I HC BCH KHOA
Khoa in in t
..0O0..
Yu cu :
Ci t 1 DNS server trn linux gi ci bind.
a. ci t tn min abc.com
b.Dng DNS lookup trc tip vo server ang ci
c. Ci webserver ln my o khc. Dng firefox trn my bt k truy cp
http://www.abc.com xut hin
HELLO CLASS
BAI TAP DNS
TN SV
d. Dng wireshark phn tch qu trnh DNS khi s dng trnh duyt
Thc hin:
Ci t DNS server trn linux gi ci bind:
yum install bind-chroot
kim tra trng thi dch v dns:
Service named status:
[root@centos1 ~]# service named status
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 1
worker threads: 1
number of zones: 21
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid 1597) is running...
Sau khi kim tra dch vu named chy ri, tin hnh cu hnh ci t tn min.
a. Ci t tn min abc.com
Cu hnh file /etc/named.conf:
zone "abc.com" IN {
type master;
file "abc.com";
allow-update { none; };
};
b.
t DNS server cho my DNS l chnh n:
Mail server:
d. Bt gi phn tch:
Phi clear DNS cache trc lc bt gi: windows dng lnh # ipconfig /flushdns.
My 192.168.175.1 gi DNS querry tn min www.abc.com
Sau khi nhn c IP t DNS server. Client s thc hin qu trnh bt tay ba bc thit lp
kt ni TCP ti webserver (192.168.175.137):
Ni dung bn tin tr v nm trong trng line based text data ca giao thc HTTP: