際際滷

際際滷Share a Scribd company logo
Bi th畛c hnh: DNS

1. DNS c董 b畉n:
       Chu畉n b畛 m担 h狸nh:




       -   M叩y Server 動畛c c畉u h狸nh NAT routing v DNS Server.
       Y棚u c畉u:
       1. Client tr畛 DNS Server v畛 m叩y Server. Client s畉 動畛c:
            Ph但n gi畉i 動畛c t棚n mi畛n b棚n ngoi.
            Ph但n gi畉i 動畛c t棚n mi畛n n畛i b畛 T畛営畉t.vn
            C叩c y棚u c畉u kh叩c:
              DNS Server ph畉i 動畛c c畉u h狸nh 炭ng chu畉n  tr棚n Client kh担ng b畛 b叩o l畛i
                Unknown DNS Server.
              C叩c t棚n mi畛n n畛i b畛 c畉n c坦 (t畉t c畉 畛u gi畉i 叩p v畛 1 IP address duy nh畉t no
                坦 t湛y 箪)
               o www.T畛営畉t.vn
               o ftp. T畛営畉t.vn
               o mail. T畛営畉t.vn
              T棚n mi畛n www.cn1. T畛営畉t.vn  123.30.129.35
       2. Khi Client -01 truy v畉n IP 192.168.10.1 s畉 動畛c gi畉i 叩p dns1. T畛営畉t.vn
       3. T畉i Client, th畛 truy c畉p Web www.cn1. T畛営畉t.vn

2. DNS Delegation:
   -   Delegation l m畛t gi畉i ph叩p nh動畛ng quy畛n qu畉n tr畛 m畛t SubDomain cho m畛t DNS
       Server kh叩c.
   -   C叩c record trong SubDomain 動畛c t畉o b畛i ng動畛i qu畉n tr畛 DNS Server con. Tr棚n DNS
       server cha, kh担ng t畉o b畉t k畛 record no trong SubDomain 坦.
   -   K畉t qu畉: DNS Client c畛a DNS cha v畉n truy v畉n 動畛c c叩c record thu畛c SubDomain
       Y棚u c畉u:
       1. Nh動畛ng quy畛n qu畉n tr畛 SubDomain cn1. T畛営畉t.vn cho DNS Server S2.
       2. C叩c t棚n mi畛n Client truy v畉n 動畛c:
                o    www.cn1.T畛営畉t.vn
                o    ftp. cn1.T畛営畉t.vn
                o    mail. cn1.T畛営畉t.vn
H動畛ng d畉n:
      1. Ci 畉t d畛ch v畛 DNS cho S2.
      2. Tr棚n DNS Server S1, th畛c hi畛n Delegation subDomain cn1. T畛営畉t.vn cho DNS
         Server S2. C叩ch lm:
          Tr棚n DNS Server S1 (DNS cha)
              Nh畉p ph畉i tr棚n zone T畛営畉t.vn  chon New Delegation
              Nh畉p t棚n SubDomain mu畛n nh動畛ng quy畛n: cn1. T畛営畉t.vn
              T畉i m畛c Name Server nh畉p t棚n mi畛n v IP address c畛a S2 (s畛 d畛ng IP
                 m畉t ngoi)
          Tr棚n DNS Server S2 (DNS con)
            T畉o Primary zone t棚n cn1. T畛営畉t.vn
            Trong zone ny, t畉o c叩c Host-A v CName www, ftp, mail,
          Ki畛m tra:
              Tr棚n C1, C2: th畛 truy v畉n c叩c t棚n mi畛n 達 t畉o tr棚n zone cn1. T畛営畉t.vn

3. Secondary DNS:
  -   Secondary DNS l m畛t gi畉i ph叩p backup (hay 畛ng b畛) d畛 li畛u DNS sang m畛t m叩y
      DNS Server kh叩c.
  -   M叩y Secondary DNS Server v畉n c坦 kh畉 nng gi畉i 叩p c叩c t棚n mi畛n t畛 m叩y Primary DNS
      Server 畛ng b畛 qua.
  -   Khi Primary DNS Server g畉p s畛 c畛, Secondary DNS Server s畉 thay th畉 ph但n gi畉i c叩c t棚n
      mi畛n m n坦 達 動畛c 畛ng b畛. Sau 24h, n畉u m叩y Primary kh担ng kh担i ph畛c l畉i,
      Secondary DNS zone s畉 t畛 畛ng chuy畛n thnh Primary DNS zone.
      Y棚u c畉u:
         -   畛ng b畛 zone T畛営畉t.vn tr棚n S1 sang DNS Server S2.
      H動畛ng d畉n:
      1. Tr棚n m叩y DNS Server S1 (Master DNS Server): Ch畛 畛nh Name Server th畛 2 cho
         zone T畛営畉t.vn
          Properties cho zone T畛営畉t.vn  tab Name Server  Add th棚m t棚n mi畛n v
            IP address c畛a DNS Server S2.
      2. Tr棚n m叩y DNS Server S2 (Secondary DNS Server):
          T畉o m畛t Secondary zone t棚n T畛営畉t.vn
          Khai b叩o Master DNS Server t棚n mi畛n v IP address c畛a DNS Server S1.
          Xem l畉i d畛 li畛u tr棚n Secondary zone T畛営畉t.vn v畛a t畉o.
          Ki畛m tra:
              G但y s畛 c畛 tr棚n DNS Server S1 (VD: stop d畛ch v畛 DNS)
              Tr棚n C2, th畛 truy v畉n c叩c t棚n mi畛n trong zone T畛営畉t.vn

4. DNS Forwarders:
  -   DNS Forwarders l m畛t gi畉i ph叩p h畛 tr畛 DNS Server chuy畛n ti畉p c叩c t棚n mi畛n (ch鱈nh
      x叩c l c叩c zone) kh担ng c坦 trong d畛 li畛u DNS n畛i b畛 sang m畛t m叩y DNS Server kh叩c.
  -   M畉c 畛nh, c叩c DNS Server th畛c hi畛n Forwarders 畉n 1 trong 13 m叩y Root Hint.
  -   Forwarders cho ph辿p chuy畛n ti畉p t畉t c畉 c叩c zone (All other DNS domains) ho畉c ch畛 畛nh
      m畛t zone (DNS Domain) t畛i m畛t DNS Server c畛 th畛 no 坦.
      Chu畉n b畛 m担 h狸nh:
-   M叩y Server 動畛c c畉u h狸nh NAT routing v DNS Server.
          -   Zone n畛i b畛 c畛a S1 l T畛営畉t1.vn
          -   Zone n畛i b畛 c畛a S2 l T畛営畉t2.vn
       Y棚u c畉u:
          -   C1 v C2 truy v畉n 動畛c t畉t c畉 c叩c t棚n mi畛n thu畛c T畛営畉t1.vn v T畛営畉t2.vn.
       H動畛ng d畉n:
       1. Tr棚n m叩y DNS Server S1: Ch畛 畛nh chuy畛n ti畉p c叩c t棚n mi畛n T畛営畉t2.vn sang m叩y
          DNS Server S2.
           Trong dnsmgmt: Properties cho t棚n DNS Server S1  tab Forwarders 
             Add th棚m t棚n mi畛n v IP address c畛a DNS Server S2.
       2. Thao t叩c t動董ng t畛 tr棚n m叩y DNS Server S2: Ch畛 畛nh chuy畛n ti畉p c叩c t棚n mi畛n
          T畛営畉t1.vn sang m叩y DNS Server S1.

           Ki畛m tra:
               C1 v C2 truy v畉n 動畛c t畉t c畉 c叩c t棚n mi畛n thu畛c T畛営畉t1.vn v
                T畛営畉t2.vn.


5. Bi t畉p n但ng cao: (th鱈ch th狸 lm)
   -   X但y d畛ng Domain Tree (g畛m m畛t Parrent Domain v m畛t Child Domain).
   -   X但y d畛ng Forest (bao g畛m 2 Tree Domain)
       Chu畉n b畛 m担 h狸nh:




          -   M叩y Server S1 v S2 動畛c c畉u h狸nh LAN routing v DNS Server.
-   畛nh tuy畉n 畛ng (RIP v2) gi畛a 2 m畉ng
   -   D畛ng Active Directory cho S1 thnh DC v畛i t棚n mi畛n T畛営畉t.vn
Y棚u c畉u:
   -   X但y d畛ng S2 thnh DC v畛i Active Directory l Child Domain t棚n cn1.T畛営畉t.vn
   -

More Related Content

Bai Thuc hanh DNS

  • 1. Bi th畛c hnh: DNS 1. DNS c董 b畉n: Chu畉n b畛 m担 h狸nh: - M叩y Server 動畛c c畉u h狸nh NAT routing v DNS Server. Y棚u c畉u: 1. Client tr畛 DNS Server v畛 m叩y Server. Client s畉 動畛c: Ph但n gi畉i 動畛c t棚n mi畛n b棚n ngoi. Ph但n gi畉i 動畛c t棚n mi畛n n畛i b畛 T畛営畉t.vn C叩c y棚u c畉u kh叩c: DNS Server ph畉i 動畛c c畉u h狸nh 炭ng chu畉n tr棚n Client kh担ng b畛 b叩o l畛i Unknown DNS Server. C叩c t棚n mi畛n n畛i b畛 c畉n c坦 (t畉t c畉 畛u gi畉i 叩p v畛 1 IP address duy nh畉t no 坦 t湛y 箪) o www.T畛営畉t.vn o ftp. T畛営畉t.vn o mail. T畛営畉t.vn T棚n mi畛n www.cn1. T畛営畉t.vn 123.30.129.35 2. Khi Client -01 truy v畉n IP 192.168.10.1 s畉 動畛c gi畉i 叩p dns1. T畛営畉t.vn 3. T畉i Client, th畛 truy c畉p Web www.cn1. T畛営畉t.vn 2. DNS Delegation: - Delegation l m畛t gi畉i ph叩p nh動畛ng quy畛n qu畉n tr畛 m畛t SubDomain cho m畛t DNS Server kh叩c. - C叩c record trong SubDomain 動畛c t畉o b畛i ng動畛i qu畉n tr畛 DNS Server con. Tr棚n DNS server cha, kh担ng t畉o b畉t k畛 record no trong SubDomain 坦. - K畉t qu畉: DNS Client c畛a DNS cha v畉n truy v畉n 動畛c c叩c record thu畛c SubDomain Y棚u c畉u: 1. Nh動畛ng quy畛n qu畉n tr畛 SubDomain cn1. T畛営畉t.vn cho DNS Server S2. 2. C叩c t棚n mi畛n Client truy v畉n 動畛c: o www.cn1.T畛営畉t.vn o ftp. cn1.T畛営畉t.vn o mail. cn1.T畛営畉t.vn
  • 2. H動畛ng d畉n: 1. Ci 畉t d畛ch v畛 DNS cho S2. 2. Tr棚n DNS Server S1, th畛c hi畛n Delegation subDomain cn1. T畛営畉t.vn cho DNS Server S2. C叩ch lm: Tr棚n DNS Server S1 (DNS cha) Nh畉p ph畉i tr棚n zone T畛営畉t.vn chon New Delegation Nh畉p t棚n SubDomain mu畛n nh動畛ng quy畛n: cn1. T畛営畉t.vn T畉i m畛c Name Server nh畉p t棚n mi畛n v IP address c畛a S2 (s畛 d畛ng IP m畉t ngoi) Tr棚n DNS Server S2 (DNS con) T畉o Primary zone t棚n cn1. T畛営畉t.vn Trong zone ny, t畉o c叩c Host-A v CName www, ftp, mail, Ki畛m tra: Tr棚n C1, C2: th畛 truy v畉n c叩c t棚n mi畛n 達 t畉o tr棚n zone cn1. T畛営畉t.vn 3. Secondary DNS: - Secondary DNS l m畛t gi畉i ph叩p backup (hay 畛ng b畛) d畛 li畛u DNS sang m畛t m叩y DNS Server kh叩c. - M叩y Secondary DNS Server v畉n c坦 kh畉 nng gi畉i 叩p c叩c t棚n mi畛n t畛 m叩y Primary DNS Server 畛ng b畛 qua. - Khi Primary DNS Server g畉p s畛 c畛, Secondary DNS Server s畉 thay th畉 ph但n gi畉i c叩c t棚n mi畛n m n坦 達 動畛c 畛ng b畛. Sau 24h, n畉u m叩y Primary kh担ng kh担i ph畛c l畉i, Secondary DNS zone s畉 t畛 畛ng chuy畛n thnh Primary DNS zone. Y棚u c畉u: - 畛ng b畛 zone T畛営畉t.vn tr棚n S1 sang DNS Server S2. H動畛ng d畉n: 1. Tr棚n m叩y DNS Server S1 (Master DNS Server): Ch畛 畛nh Name Server th畛 2 cho zone T畛営畉t.vn Properties cho zone T畛営畉t.vn tab Name Server Add th棚m t棚n mi畛n v IP address c畛a DNS Server S2. 2. Tr棚n m叩y DNS Server S2 (Secondary DNS Server): T畉o m畛t Secondary zone t棚n T畛営畉t.vn Khai b叩o Master DNS Server t棚n mi畛n v IP address c畛a DNS Server S1. Xem l畉i d畛 li畛u tr棚n Secondary zone T畛営畉t.vn v畛a t畉o. Ki畛m tra: G但y s畛 c畛 tr棚n DNS Server S1 (VD: stop d畛ch v畛 DNS) Tr棚n C2, th畛 truy v畉n c叩c t棚n mi畛n trong zone T畛営畉t.vn 4. DNS Forwarders: - DNS Forwarders l m畛t gi畉i ph叩p h畛 tr畛 DNS Server chuy畛n ti畉p c叩c t棚n mi畛n (ch鱈nh x叩c l c叩c zone) kh担ng c坦 trong d畛 li畛u DNS n畛i b畛 sang m畛t m叩y DNS Server kh叩c. - M畉c 畛nh, c叩c DNS Server th畛c hi畛n Forwarders 畉n 1 trong 13 m叩y Root Hint. - Forwarders cho ph辿p chuy畛n ti畉p t畉t c畉 c叩c zone (All other DNS domains) ho畉c ch畛 畛nh m畛t zone (DNS Domain) t畛i m畛t DNS Server c畛 th畛 no 坦. Chu畉n b畛 m担 h狸nh:
  • 3. - M叩y Server 動畛c c畉u h狸nh NAT routing v DNS Server. - Zone n畛i b畛 c畛a S1 l T畛営畉t1.vn - Zone n畛i b畛 c畛a S2 l T畛営畉t2.vn Y棚u c畉u: - C1 v C2 truy v畉n 動畛c t畉t c畉 c叩c t棚n mi畛n thu畛c T畛営畉t1.vn v T畛営畉t2.vn. H動畛ng d畉n: 1. Tr棚n m叩y DNS Server S1: Ch畛 畛nh chuy畛n ti畉p c叩c t棚n mi畛n T畛営畉t2.vn sang m叩y DNS Server S2. Trong dnsmgmt: Properties cho t棚n DNS Server S1 tab Forwarders Add th棚m t棚n mi畛n v IP address c畛a DNS Server S2. 2. Thao t叩c t動董ng t畛 tr棚n m叩y DNS Server S2: Ch畛 畛nh chuy畛n ti畉p c叩c t棚n mi畛n T畛営畉t1.vn sang m叩y DNS Server S1. Ki畛m tra: C1 v C2 truy v畉n 動畛c t畉t c畉 c叩c t棚n mi畛n thu畛c T畛営畉t1.vn v T畛営畉t2.vn. 5. Bi t畉p n但ng cao: (th鱈ch th狸 lm) - X但y d畛ng Domain Tree (g畛m m畛t Parrent Domain v m畛t Child Domain). - X但y d畛ng Forest (bao g畛m 2 Tree Domain) Chu畉n b畛 m担 h狸nh: - M叩y Server S1 v S2 動畛c c畉u h狸nh LAN routing v DNS Server.
  • 4. - 畛nh tuy畉n 畛ng (RIP v2) gi畛a 2 m畉ng - D畛ng Active Directory cho S1 thnh DC v畛i t棚n mi畛n T畛営畉t.vn Y棚u c畉u: - X但y d畛ng S2 thnh DC v畛i Active Directory l Child Domain t棚n cn1.T畛営畉t.vn -