Presentation is loading. Please wait.

Presentation is loading. Please wait.

DNS. Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator.

Similar presentations


Presentation on theme: "DNS. Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator."— Presentation transcript:

1 DNS

2 Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator

3 Top-level domain Domain NameMeaning COMCommercial organizations EDUEducational institutions GOVGovernment institutions MILMilitary groups NETMajor network support ORGOrganizations other than those above ARPATemporary ARPANET domain INTInternational organizations country codeEach country (geographical scheme)

4

5 zone Domain Delegation Primary (Master) Name Server –Contains the writable authoritative copy for the zones Secondary (Slave) Name Server –Contains mirror copy of the data from a primary nameserver

6

7 Introduction to DNS DNS Clients –/etc/resolv.conf Authoritative DNS Servers –provide the information for your DNS domain Caching DNS Server –Most servers don’t ask authoritative servers for DNS directly –ask a caching DNS server

8 How Does It Work? Listens at UDP and TCP port 53 –UDP for routine queries –TCP used for zone transfers

9

10 Basic DNS Testing of DNS Resolution The Host Command –host www.google.com The nslookup Command –nslookup www.google.comwww.google.com –nslookup

11 The /etc/resolv.conf File Nameserver –IP address of your DNS nameserver Search Domain –localdomain use by default search my-site.com my-site.net my-site.org nameserver 192.168.1.100 nameserver 192.168.1.102

12 BIND Downloading and Installing the BIND

13 How To Get BIND Started service named start service named stop service named restart

14 DNS File Locations named.conf –/etc/named.conf zone files –/var/named

15 Named.conf This file usually has two zone areas: –Forward zone file –Reverse zone file

16 Forward zone file zone "my-site.com" { type master; file "my-site.zone"; };

17 Reverse zone file zone "1.168.192.in-addr.arpa" { type master; notify no; file "192-168-1.zone"; };

18 Configuring The Zone Files By default located in the directory /var/named Each zone file contains a variety of records (SOA, NS, MX, A, and CNAME)

19 Time to Live Value –D signifies days –W signifies weeks –H signifies hours $TTL 3D

20 Standard Resource Records SOA –Start of Authority, Marks the begining of a zone's data NS –IP address or CNAME of the name server A –IP address of server

21 MX –Mail server DNS name CNAME –Server name alias PTR –Last octet of server's IP address

22 The SOA Record Format Name Class Type Name-Server Email-Address Serial-No Refresh Retry Expiry Minimum-TTL

23 @ IN SOA ns1.my-site.com. hostmaster.my-site.com. ( 2004100801 ; serial # 4H ; refresh 1H ; retry 1W ; expiry 1D ) ; minimum

24 the general format: NameClass Type Data

25 eeunix IN A 130.111.148.45 IN MX 0 eeunix IN MX 1 maine.maine.edu.

26 Trouble Shoot Domain cmu.ac.th –ns.cmu.ac.th Domain Delegation –eng.cmu.ac.th แก้ / เพิ่ม work ? Transfer zone ?


Download ppt "DNS. Introduction What is DNS? –Hierarchy or Tree –Dot used as a separator."

Similar presentations


Ads by Google